当前位置:网站首页>一张图深入的理解FP/FN/Precision/Recall
一张图深入的理解FP/FN/Precision/Recall
2022-07-07 17:14:00 【算法与编程之美】
由于图片较大,建议右键打开新的窗口以便于阅读!
(1) TP和TN都比较好理解,然而FP和FN容易混淆;
- FP(False Positive)表示错误的正例即错误的将样本中的负例识别为正例,如右图3、4行红色正方形所示;
- FN(False Negative)表示错误的负例即错误的将样本中的正例识别为负例,如右图1、2行红色三角形所示;
(2) 关于评价指标,Accuracy比较好理解,然而Precision和Recall特别容易混淆;
- Precision面向的是检测后的比例,在模型检测后(右图),检测到的所有正例结果包括正确的正例和错误的正例,相对于原始样本来说, 无论是正确的正例还是错误的正例,其检测结果均为正例,故检测结果中,正例的总数为(TP+FP), 那么在这些正例中,有多少是正确的正例呢?答案就是TP/(TP+FP);FP越小,则Precision越大,而FP即为误报为正例数量; 因此,Precision反映的是样本中正例误报的情况。
- Recall面向的是检测前的比例,在原始样本中(左图),所有的正例被模型真正检测出来的有多少?TP即为检测出来的正例个数, 那么原始样本中所有的正例个数是多少呢?答案是检测出来的正例个数加上未检测出来的正例个数; 而未检测出来的正例个数就是原本是正例然而被模型检测为负例,如右图1、2行的红色三角所示,即为错误的负例(FP); 故Recall=TP/(TP+FN);FN越小,则Recall越大,而FN即为漏检为正例的数量;因此Recall反映的是样本中正例漏检的情况。
边栏推荐
- Solve the problem of remote rviz error reporting
- 2022.07.05
- 反爬虫的重点:识别爬虫
- Basic concepts and properties of binary tree
- Short selling, overprinting and stock keeping, Oriental selection actually sold 2.66 million books in Tiktok in one month
- LeetCode1051(C#)
- 99% of people don't know that privatized deployment is also a permanently free instant messaging software!
- 50亿,福建又诞生一只母基金
- AI写首诗
- 国内首次!这家中国企业的语言AI实力被公认全球No.2!仅次于谷歌
猜你喜欢
PV static creation and dynamic creation
PV静态创建和动态创建
Chief technology officer of Pasqual: analog quantum computing takes the lead in bringing quantum advantages to industry
Basic concepts and properties of binary tree
648. 单词替换
State mode - Unity (finite state machine)
ES6 note 1
链式二叉树的基本操作(C语言实现)
编译原理 实验一:词法分析器的自动实现(Lex词法分析)
數據驗證框架 Apache BVal 再使用
随机推荐
如何给“不卖笔”的晨光估值?
Is AI more fair than people in the distribution of wealth? Research on multiplayer game from deepmind
App capture of charles+drony
指定opencv非标准安装的版本
How to share the same storage among multiple kubernetes clusters
杰理之按键发起配对【篇】
5billion, another master fund was born in Fujian
L1-023 output gplt (Lua)
歌单11111
Short selling, overprinting and stock keeping, Oriental selection actually sold 2.66 million books in Tiktok in one month
咋吃都不胖的朋友,Nature告诉你原因:是基因突变了
ES6笔记一
Research and practice of super-resolution technology in the field of real-time audio and video
索引总结(突击版本)
CMD command enters MySQL times service name or command error (fool teaching)
POJ 2392 Space Elevator
L1-025 positive integer a+b (Lua)
The top of slashdata developer tool is up to you!!!
Multimodal point cloud fusion and visual location based on image and laser
Numpy——2.数组的形状