当前位置:网站首页>【指标】Precision、Recall
【指标】Precision、Recall
2022-04-23 06:11:00 【^_^ 晅菲】
1. 二元分类指标

TP:预测为 真的样本 中 确实为 真的数量
FP:预测为 真的样本 中 确实为 假的数量
FN:预测为 假的样本 中 确实为 真的数量
TN:预测为 假的样本 中 确实为 假的数量
准确率 Accuracy:
正 确 预 测 的 样 本 = 正 确 预 测 为 1 + 正 确 预 测 为 0 的 总 样 本 数 \frac{正确预测的样本=正确预测为1+正确预测为0的}{总样本数} 总样本数正确预测的样本=正确预测为1+正确预测为0的 = T P + T N A L L \frac{TP + TN}{ALL} ALLTP+TN
查准率 Precision:
所 有 预 测 为 真 的 样 本 中 真 的 数 量 预 测 为 真 样 本 的 数 量 \frac{所有预测为真的样本中真的数量}{预测为真样本的数量} 预测为真样本的数量所有预测为真的样本中真的数量 = T P T P + F P \frac{TP}{TP + FP} TP+FPTP
召回率 Recall:
所 有 预 测 为 真 的 样 本 中 真 的 数 量 所 有 真 样 本 数 量 \frac{所有预测为真的样本中真的数量}{所有真样本数量} 所有真样本数量所有预测为真的样本中真的数量 = T P T P + F N \frac{TP}{TP + FN} TP+FNTP
举例: 预测得病个数。
假设总共有100个样本,其中20个得病。通过预测发现有24个得病,其中有18个是真实得病的。
这个情况下:
TP = 18
FP = 24-18=6
FN= 20-18 =2
TN= (100-24)-2 = 74
准确率 = 18 + 74 100 = 0.82 \frac{18+74}{100}=0.82 10018+74=0.82
查准率= 18 18 + 6 \frac{18}{18+6} 18+618
召回率= 18 18 + 2 \frac{18}{18+2} 18+218
2. 参考
版权声明
本文为[^_^ 晅菲]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43882112/article/details/121855982
边栏推荐
- Bottom navigation bar based on bottomnavigationview
- 第8章 生成式深度学习
- 【 planification dynamique】 différentes voies 2
- cmder中文乱码问题
- Migrating your native/mobile application to Unified Plan/WebRTC 1.0 API
- Keras如何保存、加载Keras模型
- 1.2 初试PyTorch神经网络
- Handlerthread principle and practical application
- [recommendation of new books in 2021] enterprise application development with C 9 and NET 5
- ThreadLocal,看我就够了!
猜你喜欢

1.2 初试PyTorch神经网络

face_recognition人脸检测
![[2021 book recommendation] practical node red programming](/img/f4/e397c01f1551cd6c59ea4f54c197e6.png)
[2021 book recommendation] practical node red programming

Ffmpeg common commands

ThreadLocal, just look at me!

Visual Studio 2019安装与使用

第2章 Pytorch基础1

Cancel remote dependency and use local dependency

【2021年新书推荐】Practical IoT Hacking

Component learning (2) arouter principle learning
随机推荐
WebRTC ICE candidate里面的raddr和rport表示什么?
【2021年新书推荐】Kubernetes in Production Best Practices
ArcGIS License Server Administrator 无法启动解决方法
Ffmpeg common commands
Android room database quick start
常用UI控件简写名
树莓派:双色LED灯实验
第1章 NumPy基础
MySQL的安装与配置——详细教程
【动态规划】不同的二叉搜索树
【点云系列】Unsupervised Multi-Task Feature Learning on Point Clouds
第5 章 机器学习基础
ffmpeg常用命令
[Point Cloud Series] SG - Gan: Adversarial Self - attachment GCN for Point Cloud Topological parts Generation
Component learning (2) arouter principle learning
face_recognition人脸检测
一款png生成webp,gif, apng,同时支持webp,gif, apng转化的工具iSparta
PyTorch训练一个网络的基本流程5步法
Component based learning (1) idea and Implementation
PyTorch 模型剪枝实例教程三、多参数与全局剪枝