当前位置:网站首页>【指标】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
边栏推荐
- [2021 book recommendation] kubernetes in production best practices
- Handler进阶之sendMessage原理探索
- [多屏互动] 实现双多屏异显二:startActivity方式
- PaddleOCR 图片文字提取
- 如何对多维矩阵进行标准化(基于numpy)
- DCMTK (dcm4che) works together with dicoogle
- C connection of new world Internet of things cloud platform (simple understanding version)
- 【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds
- What did you do during the internship
- winform滚动条美化
猜你喜欢
【点云系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
Component learning (2) arouter principle learning
一款png生成webp,gif, apng,同时支持webp,gif, apng转化的工具iSparta
树莓派:双色LED灯实验
[recommendation of new books in 2021] enterprise application development with C 9 and NET 5
ThreadLocal,看我就够了!
[point cloud series] a rotation invariant framework for deep point cloud analysis
Bottom navigation bar based on bottomnavigationview
c语言编写一个猜数字游戏编写
Gephi教程【1】安装
随机推荐
Gephi教程【1】安装
N states of prime number solution
给女朋友写个微信双开小工具
第2章 Pytorch基础2
MySQL notes 2_ data sheet
Write a wechat double open gadget to your girlfriend
【2021年新书推荐】Effortless App Development with Oracle Visual Builder
Five methods are used to obtain the parameters and calculation of torch network model
【2021年新书推荐】Professional Azure SQL Managed Database Administration
Android interview Online Economic encyclopedia [constantly updating...]
机器学习 三: 基于逻辑回归的分类预测
ffmpeg常用命令
常用UI控件简写名
电脑关机程序
Compression and acceleration technology of deep learning model (I): parameter pruning
JNI中使用open打开文件是返回-1问题
c语言编写一个猜数字游戏编写
MySQL notes 1_ database
[2021 book recommendation] effortless app development with Oracle visual builder
第1章 NumPy基础