当前位置:网站首页>一张图深入的理解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反映的是样本中正例漏检的情况。
边栏推荐
- Basic concepts and properties of binary tree
- 解决远程rviz报错问题
- Mathematical analysis_ Notes_ Chapter 11: Fourier series
- Big Ben (Lua)
- Redis cluster and expansion
- 2022.07.04
- Wechat web debugging 8.0.19 replace the X5 kernel with xweb, so the X5 debugging method can no longer be used. Now there is a solution
- 微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹
- ES6 note 1
- 多个kubernetes集群如何实现共享同一个存储
猜你喜欢

前首富,沉迷种田

Redis

In 2021, the national average salary was released. Have you reached the standard?

超分辨率技术在实时音视频领域的研究与实践

Former richest man, addicted to farming
![[tpm2.0 principle and Application guide] Chapter 9, 10 and 11](/img/7f/0d4d91142bc3d79ea445a8f64afba7.png)
[tpm2.0 principle and Application guide] Chapter 9, 10 and 11

Cadre de validation des données Apache bval réutilisé
![Learn open62541 -- [67] add custom enum and display name](/img/98/e5e25af90b3f98c2be11d7d21e5ea6.png)
Learn open62541 -- [67] add custom enum and display name

Complete e-commerce system

高温火烧浑不怕,钟薛高想留清白在人间
随机推荐
索引总结(突击版本)
完整的电商系统
AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究
Chief technology officer of Pasqual: analog quantum computing takes the lead in bringing quantum advantages to industry
Creative changes brought about by the yuan universe
Draw squares with Obama (Lua)
[Blue Bridge Cup training 100 questions] sort scratch from small to large. Blue Bridge Cup scratch competition special prediction programming question centralized training simulation exercise question
Solve the error reporting problem of rosdep
IP netns command (memo)
抢占周杰伦
"Decryption" Huawei machine vision Corps: Huawei is moving up and the industry is moving forward
testing and SQA_ Dynamic white box test [easy to understand]
Desci: is decentralized science the new trend of Web3.0?
Business experience in virtual digital human
炒股如何开户?请问一下手机开户股票开户安全吗?
杰理之手动配对方式【篇】
648. 单词替换
PV静态创建和动态创建
虚拟数字人里的生意经
LeetCode 515(C#)