当前位置:网站首页>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 .
边栏推荐
- 【JDBC Part 1】概述、获取连接、CRUD
- Insufficient permissions
- Le capital - investissement est - il légal en Chine? C'est sûr?
- Take the intersection of two sets
- Can Huatai Securities achieve Commission in case of any accident? Is it safe to open an account
- Demon daddy B3 read extensively in a small amount, and completed 20000 vocabulary+
- object-c编程tips-timer「建议收藏」
- 现在网上开户安全么?想知道我现在在南宁,到哪里开户比较好?
- What is the reason for the abnormal flow consumption of 4G devices accessing the easygbs platform?
- The difference between NPM uninstall and RM direct deletion
猜你喜欢

Implement secondary index with Gaussian redis

解决使用uni-app MediaError MediaError ErrorCode -5

Ten thousand word summary data storage, three knowledge points

Wechat official account oauth2.0 authorizes login and displays user information

【JDBC Part 1】概述、获取连接、CRUD
MySQL storage expression error

Dry goods sharing | devaxpress v22.1 original help document download collection

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

Navicat connect 2002 - can't connect to local MySQL server through socket '/var/lib/mysql/mysql Sock 'solve
Default constraint and zero fill constraint of MySQL constraint
随机推荐
[matrix multiplication] [noi 2012] [cogs963] random number generator
Codesonar Webinar
object-c编程tips-timer「建议收藏」
Is private equity legal in China? Is it safe?
Reinforcement learning - learning notes 8 | Q-learning
你可曾迷茫?曾经的测试/开发程序员,懵懂的小菜C鸟升级......
恶魔奶爸 A0 英文零基础的自我提升路
Description of the difference between character varying and character in PostgreSQL database
单词反转实现「建议收藏」
npm uninstall和rm直接删除的区别
Demon daddy guide post - simple version
SQL注入报错注入函数图文详解
Tupu digital twin coal mining system to create "hard power" of coal mining
UVA 12230 – crossing rivers (probability) "suggested collection"
How to integrate Google APIs with Google's application system (1) -introduction to Google APIs
Qt编写物联网管理平台39-报警联动
死锁的产生条件和预防处理[通俗易懂]
Ten thousand word summary data storage, three knowledge points
Addition, deletion, modification and query of sqlhelper
Do you have to make money in the account to open an account? Is the fund safe?