模型评估

本文详细解释了在信息检索及机器学习中精确率(Precision)与召回率(Recall)的概念及其计算方法。精确率定义为预测为positive的样本中真正为positive的比例,而召回率则衡量了实际为positive的样本被正确预测的比例。此外,还介绍了准确率(Accuracy)、真阳性率(True Positive Rate, TPR)等关键指标。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >




  1. 精度{\displaystyle {\text{Precision}}={\frac {tp}{tp+fp}}\,}

预测为positve的占所有预测为positive的比例。

Recall = t p t p + f n {\displaystyle {\text{Recall}}={\frac {tp}{tp+fn}}\,}
  1. 召回率{\displaystyle {\text{Recall}}={\frac {tp}{tp+fn}}\,}
预测为positve的占实际positive的比例。

  1. 准确率{\displaystyle {\text{Accuracy}}={\frac {tp+tn}{tp+tn+fp+fn}}\,}
预测positive和negetive都正确的占所有样本的比例。



 True condition   
 Total populationCondition positiveCondition negativePrevalence =
Σ Condition positive
/
Σ Total population
Accuracy (ACC) =
Σ True positive + Σ True negative
/
Σ Total population
Predicted
condition
Predicted condition
positive
Positive predictive value (PPV), Precision =
Σ True positive
/
Σ Predicted condition positive
False discovery rate (FDR) =
Σ False positive
/
Σ Predicted condition positive
Predicted condition
negative
True negativeFalse omission rate (FOR) =
Σ False negative
/
Σ Predicted condition negative
Negative predictive value (NPV) =
Σ True negative
/
Σ Predicted condition negative
 True positive rate (TPR), Recall, Sensitivity, probability of detection =
Σ True positive
/
Σ Condition positive
False positive rate (FPR), Fall-out, probability of false alarm =
Σ False positive
/
Σ Condition negative
Positive likelihood ratio (LR+) =
TPR
/
FPR
Diagnostic odds ratio (DOR) =
LR+
/
LR−
F1 score =
2
/
1
/
Recall
 + 
1
/
Precision
False negative rate (FNR), Miss rate =
Σ False negative
/
Σ Condition positive
True negative rate (TNR), Specificity (SPC) =
Σ True negative
/
Σ Condition negative
Negative likelihood ratio (LR−) =
FNR
/
TNR

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值