当前位置:网站首页>An in-depth understanding of fp/fn/precision/recall
An in-depth understanding of fp/fn/precision/recall
2022-07-07 21:38:00 【Beauty of algorithm and programming】
Because the picture is large , It is recommended to right-click to open a new window for easy reading !
(1) TP and TN It's easy to understand , However FP and FN Easy to confuse ;
- FP(False Positive) Indicates the positive example of error, that is, the negative example in the sample is incorrectly recognized as a positive example , Like the picture on the right 3、4 The line is shown by a red square ;
- FN(False Negative) Negative examples that indicate errors, that is, the positive examples in the sample are incorrectly recognized as negative examples , Like the picture on the right 1、2 Line red triangle ;
(2) About the evaluation index ,Accuracy It's easy to understand , However Precision and Recall It's especially confusing ;
- Precision It aims at the proportion after detection , After model checking ( Right picture ), All positive examples detected include correct positive examples and wrong positive examples , Compared with the original sample , Whether it is the correct positive example or the wrong positive example , The test results are positive , Therefore, the test results are , The total number of positive examples is (TP+FP), So in these positive examples , How many are the correct positive examples ? The answer is TP/(TP+FP);FP The smaller it is , be Precision The bigger it is , and FP That is, the number of false positives ; therefore ,Precision It reflects the positive and false positives in the sample .
- Recall It aims at the proportion before detection , In the original sample ( On the left ), How many positive examples are really detected by the model ?TP That is, the number of positive cases detected , How many positive examples are there in the original sample ? The answer is the number of positive cases detected plus the number of positive cases not detected ; The number of positive cases that have not been detected is the number of positive cases that were originally detected as negative cases by the model , Like the picture on the right 1、2 The red triangle of the line shows , It is a negative example of error (FP); so Recall=TP/(TP+FN);FN The smaller it is , be Recall The bigger it is , and FN That is, the number of positive cases of missed detection ; therefore Recall It reflects the omission of positive cases in the sample .
边栏推荐
- 恶魔奶爸 B2 突破语法,完成正统口语练习
- Is private equity legal in China? Is it safe?
- How to integrate Google APIs with Google's application system (1) -introduction to Google APIs
- Word inversion implements "suggestions collection"
- 现在网上开户安全么?想知道我现在在南宁,到哪里开户比较好?
- POJ 3140 contents division "suggestions collection"
- [uvalive 6663 count the regions] (DFS + discretization) [easy to understand]
- Reinforcement learning - learning notes 8 | Q-learning
- UVA 12230 – crossing rivers (probability) "suggested collection"
- 恶魔奶爸 指南帖——简易版
猜你喜欢
[200 opencv routines] 223 Polygon fitting for feature extraction (cv.approxpolydp)
Solve the problem of using uni app mediaerror mediaerror errorcode -5
The little money made by the program ape is a P!
cv2.resize函数报错:error: (-215:Assertion failed) func != 0 in function ‘cv::hal::resize‘
NVR硬盘录像机通过国标GB28181协议接入EasyCVR,设备通道信息不显示是什么原因?
How to meet the dual needs of security and confidentiality of medical devices?
你可曾迷茫?曾经的测试/开发程序员,懵懂的小菜C鸟升级......
Magic weapon - sensitive file discovery tool
解决使用uni-app MediaError MediaError ErrorCode -5
Virtual machine network configuration in VMWare
随机推荐
Codeforces 474 F. Ant colony
How much does it cost to develop a small program mall?
UVA 11080 – Place the Guards(二分图判定)
Goal: do not exclude yaml syntax. Try to get started quickly
Lingyun going to sea | saihe & Huawei cloud: jointly help the sustainable development of cross-border e-commerce industry
Demon daddy A3 stage near normal speed speech flow initial contact
私募基金在中國合法嗎?安全嗎?
Using enumeration to realize English to braille
SQL injection error report injection function graphic explanation
Implement secondary index with Gaussian redis
The cyberspace office announced the measures for data exit security assessment, which will come into force on September 1
gridView自己定义做时间排版「建议收藏」
特征生成
反诈困境,国有大行如何破局?
Prometheus remote_ write InfluxDB,unable to parse authentication credentials,authorization failed
Description of the difference between character varying and character in PostgreSQL database
Codesonar Webinar
死锁的产生条件和预防处理[通俗易懂]
95年专注安全这一件事 沃尔沃未来聚焦智能驾驶与电气化领域安全
【矩阵乘】【NOI 2012】【cogs963】随机数生成器