当前位置:网站首页>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 .
边栏推荐
- Jenkins user rights management
- Arlo's troubles
- POJ 3140 Contestants Division「建议收藏」
- Reinforcement learning - learning notes 8 | Q-learning
- object-c编程tips-timer「建议收藏」
- Use br to recover backup data on azure blob storage
- 刚开户的能买什么股票呢?炒股账户安全吗
- [C language] advanced pointer --- do you really understand pointer?
- SQL injection error report injection function graphic explanation
- 死锁的产生条件和预防处理[通俗易懂]
猜你喜欢

The latest version of codesonar has improved functional security and supports Misra, c++ parsing and visualization

cv2.resize函数报错:error: (-215:Assertion failed) func != 0 in function ‘cv::hal::resize‘

Ubuntu安装mysql8遇到的问题以及详细安装过程

恶魔奶爸 B3 少量泛读,完成两万词汇量+

How to meet the dual needs of security and confidentiality of medical devices?

Implement secondary index with Gaussian redis

NVR硬盤錄像機通過國標GB28181協議接入EasyCVR,設備通道信息不顯示是什麼原因?
MySQL约束之默认约束default与零填充约束zerofill

解决使用uni-app MediaError MediaError ErrorCode -5
![[C language] advanced pointer --- do you really understand pointer?](/img/ee/79c0646d4f1bfda9543345b9da0f25.png)
[C language] advanced pointer --- do you really understand pointer?
随机推荐
Devil daddy A0 English zero foundation self-improvement Road
Devil daddy B1 hearing the last barrier, break through with all his strength
Demon daddy guide post - simple version
L2:ZK-Rollup的现状,前景和痛点
POJ 3140 Contestants Division「建议收藏」
Jetty: configure connector [easy to understand]
Demon daddy A1 speech listening initial challenge
95年专注安全这一件事 沃尔沃未来聚焦智能驾驶与电气化领域安全
Object-C programming tips timer "suggestions collection"
201215-03-19—cocos2dx内存管理–具体解释「建议收藏」
easyui 日期控件清空值
Contour layout of margin
Implement secondary index with Gaussian redis
Datatable data conversion to entity
I have to use my ID card to open an account. Is the bank card safe? I don't understand it
Using enumeration to realize English to braille
NVR硬盘录像机通过国标GB28181协议接入EasyCVR,设备通道信息不显示是什么原因?
Validutil, "Rethinking the setting of semi supervised learning on graphs"
gridView自己定义做时间排版「建议收藏」
What is the reason for the abnormal flow consumption of 4G devices accessing the easygbs platform?