日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

DET曲线(检测误差权衡曲线)

發(fā)布時間:2023/12/15 综合教程 27 生活家
生活随笔 收集整理的這篇文章主要介紹了 DET曲线(检测误差权衡曲线) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

DET曲線

DET曲線即Detection error tradeoff (DET) curve,檢測誤差權(quán)衡曲線。功能類似于ROC曲線,但有時DET曲線更容易判斷分類器的性能。

參考sklearn中的介紹:

DET curves are commonly plotted in normal deviate scale. (DET曲線通常以正常偏差尺度繪制。)

To achieve thisplot_det_curvetransforms the error rates as returned by thedet_curveand the axis scale usingscipy.stats.norm.

The point of this example is to demonstrate two properties of DET curves, namely:

It might be easier to visually assess the overall performance of different classification algorithms using DET curves over ROC curves. Due to the linear scale used for plotting ROC curves, different classifiers usually only differ in the top left corner of the graph and appear similar for a large part of the plot. On the other hand, because DET curves represent straight lines in normal deviate scale. As such, they tend to be distinguishable as a whole and the area of interest spans a large part of the plot.

DET curves give the user direct feedback of the detection error tradeoff to aid in operating point analysis. The user can deduct directly from the DET-curve plot at which rate false-negative error rate will improve when willing to accept an increase in false-positive error rate (or vice-versa)

ROC曲線和DET曲線的對比

關(guān)于DET曲線更詳細的論述參考論文:

Martin, A., Doddington, G., Kamm, T., Ordowski, M., & Przybocki, M. (1997).The DET curve in assessment of detection task performance. National Inst of Standards and Technology Gaithersburg MD.

DET曲線的繪制

(1)sklearn

sklearn中提供DET曲線的繪制接口。

fpr_det, fnr_det, thresholds_det = metrics.det_curve(label_test, test_scores, pos_label=1)

# plot DET curve (in normal deviate scale)
display = metrics.DetCurveDisplay(fpr=fpr_det, fnr=fnr_det)
display.plot()
plt.show()

DET曲線

(2)matlab

繪制DET曲線通常是在正態(tài)偏差尺度下繪制的,因此繪制之前需要進行數(shù)據(jù)尺度變換。

參考sklearn中metrics.DetCurveDisplay(fpr=fpr_det, fnr=fnr_det)的實現(xiàn),可以看到幾個關(guān)鍵的變換步驟如下:

sp.stats.norm.ppf(self.fpr)
sp.stats.norm.ppf(self.fnr)

ticks = [0.001, 0.01, 0.05, 0.20, 0.5, 0.80, 0.95, 0.99, 0.999]
tick_locations = sp.stats.norm.ppf(ticks)

tick_labels = [
            '{:.0%}'.format(s) if (100*s).is_integer() else '{:.1%}'.format(s)
            for s in ticks
        ]



ax.set_xlim(-3, 3)
ax.set_ylim(-3, 3) 

這里sp.stats.norm.ppf()返回CDF中的x,即累計分布函數(shù)的逆函數(shù)(分位點函數(shù),給出分位點返回對應的x值)。

這等價于matlab中的norminv(x, mu, sigma),因此matlab中通過以下方式繪制DET曲線:

DET_test = load('DET.txt');

fnr = norminv(DET_test(:, 1), 0, 1);  % 轉(zhuǎn)換為正態(tài)偏差尺度Normal deviation scale
fpr = norminv(DET_test(:, 2), 0, 1);  % 轉(zhuǎn)換為正態(tài)偏差尺度Normal deviation scale

figure
plot(fnr, fpr, 'linewidth', 2)
xlabel('False negative rate')
ylabel('False positive rate')

% 坐標軸尺度轉(zhuǎn)換(轉(zhuǎn)換為正態(tài)偏差尺度Normal deviation scale)
ticks = norminv([0.001, 0.01, 0.05, 0.20, 0.5, 0.80, 0.95, 0.99, 0.999]);
ticklabels = {'0.1%', '1%', '5%', '20%', '50%', '80%', '95%', '99%', '99.9%'};
xticks(ticks)
yticks(ticks)
xticklabels(ticklabels)
yticklabels(ticklabels)
xlim([-3, 3]) % [-3sigma, +3sigma]
ylim([-3, 3])

DET曲線

可以看出,結(jié)果與sklearn的結(jié)果一致。

線性尺度下的DET曲線:

DET曲線(線性尺度)

https://juliahub.com/docs/ROCAnalysis/GJ3BH/0.3.3/

https://nbviewer.jupyter.org/github/davidavdav/ROCAnalysis.jl/blob/master/ROCAnalysis.ipynb

A Detection Error Trade-off plot (DET plot) showsthe sameinformation as the ROC plot above---but the scales are warped according to the inverse of the cumulative normal distribution. This way of plotting has many advantages:

If the distributions of target and non-target scores are both Normal, then the DET-curve is a straight line. In practice, many detection problems give rise to more-or-less straight DET curves, and this suggests that there exists a strictly increasing warping function that can make the score distributions (more) Normal.

Towards better performance (lower error rates), the resolution of the graph is higher. This makes it more easy to have multiple systems / performance characteristics over a smaller or wider range of performance in the same graph, and still be able to tell these apart.

Conventionally, the ranges of the axes are chosen 0.1%--50%---and the plot area shouldreallybe square. This makes it possible to immediately assess the overall performance based on the absolute position of the line in the graph if you have seen more DET plots in your life.

The slope of the (straight) line corresponds to the ratio of theσparameters of the underlying Normal score distributions, namely that of the non-target scores divided by that of the target scores. Often, highly discriminative classifiers show veryflatcurves, indicating that that target scores have a much larger variance than the non-target scores.

The origin of this type of plot lies in psychophysics, where graph paper with lines according to this warping was referred to asdouble probability paper. The diagonaly=xy=xin a DET plot corresponds linearly to a quantity known asd′d′(d-prime) from psychophysics, ranging from 0 at 50% error to about 6 at 0.1% error.

快去成為你想要的樣子!

總結(jié)

以上是生活随笔為你收集整理的DET曲线(检测误差权衡曲线)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 日本电影一区二区三区 | 日韩精品免费一区 | 在线观看污| 日韩福利视频导航 | 欧美小视频在线观看 | 蜜桃视频一区二区在线观看 | 免费看黄色三级 | 97成人资源 | 成人91在线观看 | 精品国产96亚洲一区二区三区 | 精品黑人一区二区三区观看时间 | 日本精品免费一区二区三区 | bt天堂新版中文在线地址 | 涩涩国产 | 爱久久| 欧美xxx视频 | 一区二区三区激情视频 | 久久久天堂 | 天天综合网天天综合色 | 波多野结衣电影在线播放 | 超碰h | 午夜影院免费版 | 亚洲色偷偷色噜噜狠狠99网 | 欧美成人hd | 日韩一级影院 | 国产三级国产精品国产专区50 | 综合网在线观看 | 97爱爱爱| av片在线播放 | 中国少妇色 | 韩国中文字幕在线观看 | 国产传媒欧美日韩 | 欧美精品少妇 | 国产视频三区 | 麻豆一区二区在线观看 | 啪啪av| 成人资源在线观看 | 欧美日韩国 | 无码一区二区三区在线 | 亚洲人免费| 国产清纯在线 | 日本福利一区二区 | 一级欧美黄色片 | 西川结衣在线观看 | 黄色大视频 | 国产一及毛片 | 亚洲综合在 | 粗大的内捧猛烈进出 | 91精品国产一区二区三竹菊影视 | 啪啪网站免费观看 | 午夜精品在线视频 | 精品视频中文字幕 | 乱熟女高潮一区二区在线 | 东北少妇露脸无套对白 | 人妻少妇精品中文字幕av蜜桃 | 国产精选中文字幕 | 美日韩精品一区二区 | 国产视频一区二区在线观看 | 国产精品无码av在线播放 | 国产wwwwww | 啪啪国产精品 | 日本色影院| av777777| 国产性一乱一性一伧一色 | 伊人久久大香线蕉综合75 | 国产欧美视频一区二区 | 国产精品久久久久久久裸模 | 日日夜夜爽爽 | 免费小视频在线观看 | 国产无遮挡18禁无码网站不卡 | jlzzjlzz亚洲日本少妇 | 免费在线观看一区 | 国产精品久久AV无码 | 亚洲色在线视频 | 久久成人小视频 | 在线欧美激情 | 国产欧美一区二区三区视频在线观看 | 99国产精品视频免费观看一公开 | 伊人免费在线观看高清版 | 亚洲国产成人在线 | 欧美精品欧美精品系列 | 亚洲精品一区二三区不卡 | 99热一区| 久久久久久久久国产精品一区 | 性激情视频| 国产精品亚洲视频 | 国产精品久久久久9999爆乳 | 欧美做爰爽爽爽爽爽爽 | 久草色在线 | 伊人影院在线视频 | 成人h动漫精品一区 | 又黄又爽无遮挡 | 精品欧美一区二区三区在线观看 | 日日日操| 一级的大片 | 女的被男的操 | 中文字幕激情小说 | 日本精品在线观看视频 | 九月激情网 |