当前位置:网站首页>[vivid understanding] the meanings of various evaluation indicators commonly used in deep learning TP, FP, TN, FN, IOU and accuracy
[vivid understanding] the meanings of various evaluation indicators commonly used in deep learning TP, FP, TN, FN, IOU and accuracy
2022-06-27 08:48:00 【Gisleung】
Whether for the classification of the image field 、 Segmentation problem , Or object classification in point cloud field 、 Scene segmentation , When evaluating a model , Often involves TP、FP、TN、FN、IoU、Accuracy... And other indicators , So what do these indicators mean ? I have Mr. duck 、 The monkey guest and the panda steward come to show you .
start
Why ! Find out 10 A lovely little animal , But we don't know what animal it is , You don't have to study deeply to classify ?
At this time, we just take out Train well Of Model , Throw these little animals in , After a long wait , We have the following prediction results :
Obviously , The model does not complete the task perfectly . But how to evaluate it ?
Basic indicators :TP、FP、TN、FN
To some Category A Speaking of :T = true, Indicates correctly classified ;F = false, For error classification ;P = Positive, Indicates that the classification result is A;N = Negative, Indicates that the classification result is non A.
- TP(True Positive): Correct and divided into
ANumber of ( the truth is thatA). - FP(False Positive): Misclassification
ANumber of ( the truth is thatNot A). - TN(True Negative): Correct and divided into
Not ANumber of ( the truth is thatNot A). - FN(False Negative): Misclassification
Not ANumber of ( the truth is thatA).
that : For the above 3 In terms of animal categories :
| Category | TP | FP | TN | FN |
|---|---|---|---|---|
| The duck | 5 | 1 | 3 | 1 |
| monkey | 1 | 1 | 7 | 1 |
| Panda | 2 | 0 | 8 | 0 |
You can see , For each category ,TP+FP+TN+FN == 10( common 10 Animals )
Accuracy rate :Accuracy
meaning : Accuracy of classification of all small animals , in total 10 A little animal , among 8 The categories are correct .
Calculation :8 / 10 = 80.00%
Accuracy :Precision
meaning : In the prediction results of each category , Proportion belonging to the correct classification
Calculation :P = TP / (TP + FP)
- The duck :5 / (5 + 1)= 83.33%
- monkey :1 / (1 + 1)= 50.00%
- Panda :2 / (2 + 0)= 100.00%
Occurring simultaneously than :IoU
meaning : The ratio of the intersection and union of the predicted result and the real value of a certain class 
- The duck :
True value (6 A duck )AndPredicted results (5 A duck +1 Only monkey ), Its intersection is 5 only , Union as 7 only .
Calculation :IoU = 5 / 7= 0.714 - monkey :
True value (2 Only monkey )AndPredicted results (1 A duck +1 Only monkey ), Its intersection is 1 only , Union as 3 only .
Calculation ( monkey ):IoU = 1 / 3= 0.333 - Panda :
True value (2 Bear )AndPredicted results (2 Cats ), Its intersection is 2 only , Union as 2 only .
Calculation ( Panda ):IoU = 2 / 2= 1
so :IoU The value is approximately close to 1, Indicates that the better the prediction result of this class
The average ratio of crossing and merging :mIoU
meaning : All categories of IoU Sum up , Divide by the number of categories
Calculation :(0.714 + 0.333 + 1)/ 3 = 0.682
边栏推荐
- 多网络设备存在时,如何配置其上网优先级?
- Matlab tips (18) matrix analysis -- entropy weight method
- ZABBIX deployment instructions (server+win client + switch (H3C))
- When multiple network devices exist, how to configure their Internet access priority?
- oracle用一条sql查出哪些数据不在某个表里
- 【云原生】2.3 Kubernetes 核心实战(上)
- ServletConfig与ServletContext
- 100%弄明白5种IO模型
- AQS underlying source code of concurrent programming JUC
- Lvgl description 3 about the use of lvgl Guide
猜你喜欢

Imx8qxp DMA resources and usage (unfinished)

1098 Insertion or Heap Sort(堆排序解释)(PAT甲级)

我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!

浏览器的markdown插件显示不了图片

That is, a one-stop live broadcast service with "smooth live broadcast" and full link upgrade

Digital ic-1.9 understands the coding routine of state machine in communication protocol

粗读DS-TransUNet: Dual Swin Transformer U-Net for Medical Image Segmentation

2022.06.26(LC_6101_判断矩阵是否是一个 X 矩阵)

oracle怎样将字符串转为多行

并发编程JUC的AQS底层源码
随机推荐
Flow chart of Alipay wechat payment business
Ue5 magic power - POI solution
This, constructor, static, and inter call must be understood!
Understanding mvcc in MySQL transactions is super simple
DataV轮播表组件dv-scroll-board宽度问题
我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!
fastadmin 安装后访问后台提示模块不存在
MySQL锁详解
Getting started with webrtc: 12 Rtendpoint and webrtcendpoint under kurento
即构「畅直播」,全链路升级的一站式直播服务
MATLAB小技巧(19)矩阵分析--主成分分析
Obsidian 一周使用心得(配置、主题和插件)
2022.6.26-----leetcode.710
【云原生】2.3 Kubernetes 核心实战(上)
招聘需求 视觉工程师
Correctly understand MySQL mvcc
Code source AQS sous - jacent pour la programmation simultanée juc
Object contains copy method?
[MySQL basic] general syntax 1
多网络设备存在时,如何配置其上网优先级?