首页 技术 正文
技术 2022年11月16日
0 收藏 688 点赞 2,752 浏览 2230 个字

这篇博客很全面

http://www.cnblogs.com/cdeng/p/3471527.html

ROC曲线

1.混淆矩阵(confusion matrix)

针对预测值和真实值之间的关系,我们可以将样本分为四个部分,分别是:

真正例(True Positive,TP):预测值和真实值都为1

假正例(False Positive,FP):预测值为1,真实值为0

真负例(True Negative,TN):预测值与真实值都为0

假负例(False Negative,FN):预测值为0,真实值为1

我们将这四种值用矩阵表示(图片引自《machine learning:A Probabilistic Perspective》):

[ZZ] Equal Error Rate (EER)

上面的矩阵就是混淆矩阵。

2.ROC曲线

通过混淆矩阵,我们可以得到真正例率(True Positive Rate , TPR):

[ZZ] Equal Error Rate (EER)

我们还可以得到假正例率(False Positive Rate  , FPR):

[ZZ] Equal Error Rate (EER)

可以看到,TPR也就是我们所说的召回率,那么只要给定一个决策边界阈值[ZZ] Equal Error Rate (EER),我们可以得到一个对应的TPR和FPR值,然而,我们不从这个思路来简单的得到TPR和FPR,而是反过来得到对应的[ZZ] Equal Error Rate (EER),我们检测大量的阈值[ZZ] Equal Error Rate (EER),从而可以得到一个TPR-FPR的相关图,如下图所示(图片引自《machine learning:A Probabilistic Perspective》):

[ZZ] Equal Error Rate (EER)

图中的红色曲线和蓝色曲线分别表示了两个不同的分类器的TPR-FPR曲线,曲线上的任意一点都对应了一个[ZZ] Equal Error Rate (EER)值。该曲线就是ROC曲线(receiver operating characteristic curve)。该曲线具有以下特征:

  • 一定经过(0,0)点,此时[ZZ] Equal Error Rate (EER),没有预测为P的值,TP和FP都为0
  • 一定经过(1,1)点,此时[ZZ] Equal Error Rate (EER),全都预测为P
  • 最完美的分类器(完全区分正负样例):(0,1)点,即没有FP,全是TP
  • 曲线越是“凸”向左上角,说明分类器效果越好
  • 随机预测会得到(0,0)和(1,1)的直线上的一个点
  • 曲线上离(0,1)越近的点分类效果越好,对应着越合理的[ZZ] Equal Error Rate (EER)

从图中可以看出,红色曲线所代表的分类器效果好于蓝色曲线所表示的分类器。

3.利用ROC的其他评估标准

  • AUC(area under thecurve),也就是ROC曲线的下夹面积,越大说明分类器越好,最大值是1,图中的蓝色条纹区域面积就是蓝色曲线对应的 AUC
  • EER(equal error rate),也就是FPR=FNR的值,由于FNR=1-TPR,可以画一条从(0,1)到(1,0)的直线,找到交点,图中的A、B两点。

参考:

1.《machine learning:A Probabilistic Perspective》

2.wiki

这篇博客只给了算法,未给出理由

http://blog.csdn.net/hanlin_tan/article/details/39183843

最近在做视频中目标检测,看到论文中有一项指标叫EER(Equal Error Rate),于是我也想算一算,结果google、baidu了半天,各种百科里没有一个像样的定义,更别提如何计算了。最后在一个matlab论坛里找到了正解:

“the Equal Error Rate (EER) is the point on the ROC curve that corresponds to have an equal probability of miss-classifying a positive or negative sample. This point is obtained by intersecting the ROC curve with a diagonal of the unit square. ”

翻译过来就是:EER是(一个分类器的)ROC曲线(接受者操作特性曲线)中错分正负样本概率相等的点(所对应的错分概率值)。这个点就是ROC曲线与ROC空间中对角线([0,1]-[1,0]连线)的交点(如下图所示)。

所以下图表示的分类器的EER应该是蓝色虚线和红色ROC曲线的交点对应的横坐标值,在0.17左右。

(关于什么是ROC曲线,请大家点链接看维基百科吧。)

[ZZ] Equal Error Rate (EER)

http://blog.csdn.net/lcmssd/article/details/30803517

ERR 是 Bayesian决策中最佳阈值对应的错误率,此时False acceptance 和 False rejection是相等的,

ERR可以用来衡量算法的错误率,ERR越小表示算法错误率越低 

http://www.webopedia.com/TERM/E/equal_error_rate.html

Abbreviated as EER. A biometric security system predetermines the threshold values for its false acceptance rate and its false rejection rate, and when the rates are equal, the common value is referred to as the equal error rate. The value indicates that the proportion of false acceptances is equal to the proportion of false rejections. The lower the equal error rate value, the higher the accuracy of the biometric system.

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,942
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,468
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,281
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,096
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,728
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,765