当前位置:网站首页>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 .
边栏推荐
- Deadlock conditions and preventive treatment [easy to understand]
- 使用枚举实现英文转盲文
- Contour layout of margin
- Description of the difference between character varying and character in PostgreSQL database
- How much does it cost to develop a small program mall?
- openGl超级宝典学习笔记 (1)第一个三角形「建议收藏」
- cv2.resize函数报错:error: (-215:Assertion failed) func != 0 in function ‘cv::hal::resize‘
- sqlHelper的增删改查
- Use br to recover backup data on azure blob storage
- Use camunda to do workflow design and reject operations
猜你喜欢
你可曾迷茫?曾经的测试/开发程序员,懵懂的小菜C鸟升级......
The maximum number of meetings you can attend [greedy + priority queue]
The little money made by the program ape is a P!
使用枚举实现英文转盲文
MySQL约束之默认约束default与零填充约束zerofill
C language helps you understand pointers from multiple perspectives (1. Character pointers 2. Array pointers and pointer arrays, array parameter passing and pointer parameter passing 3. Function point
恶魔奶爸 B3 少量泛读,完成两万词汇量+
cv2.resize函数报错:error: (-215:Assertion failed) func != 0 in function ‘cv::hal::resize‘
SQL注入报错注入函数图文详解
MySQL storage expression error
随机推荐
Magic weapon - sensitive file discovery tool
浅解ARC中的 __bridge、__bridge_retained和__bridge_transfer
FatMouse' Trade(杭电1009)
Differences and connections between MinGW, mingw-w64, tdm-gcc and other tool chains "suggestions collection"
使用枚举实现英文转盲文
The latest version of codesonar has improved functional security and supports Misra, c++ parsing and visualization
Lingyun going to sea | saihe & Huawei cloud: jointly help the sustainable development of cross-border e-commerce industry
The new version of onespin 360 DV has been released, refreshing the experience of FPGA formal verification function
Demon daddy C
POJ 3140 contents division "suggestions collection"
SQL注入报错注入函数图文详解
JNI primary contact
easyui 日期控件清空值
特征生成
刚开户的能买什么股票呢?炒股账户安全吗
开户还得用身份证银行卡安全吗,我是小白不懂
恶魔奶爸 C
NVR硬盘录像机通过国标GB28181协议接入EasyCVR,设备通道信息不显示是什么原因?
[UVALive 6663 Count the Regions] (dfs + 离散化)[通俗易懂]
Hoj 2245 planktonic triangle cell (Mathematics)