混淆矩阵 confusion matrix

混淆矩阵(confusion matrix)(也称误差矩阵)是一种特殊的, 具有两个维度的(实际和预测)列联表(contingency table),并且两维度中都有着一样的类别的集合。

 

 

  实际的类别  
 Total =P + N 正例   positive (P)负例 negative(N)Prevalence = P / Total 精确度 Accuracy  =  (TP + TN) / Total 
预测的类别 预测正例真阳性(TP)    true positive假阳性(FP)   false positive 精度 Precision       PPV= TP / (TP + FP)False discovery rate   FDR = FP / (FP+TP)
预测负例假阴性(FN)   false negative真阴性(TN)   true negative 错误遗漏率           False omission rate   FOR = FN / (FN+TN)Negative            predictive value            NPV = TN / (TN+FN)
  召回率 Recall  = TP / (TP+FN)False positive rate (FPR)= FP / (FP+TN)Positive likelihood ratio (LR+) = TPR/FPRDiagnostic odds ratio (DOR) = LR+/LR−
  False negative rate (FNR)= FN / (TP+FN)True negative rate (TNR) = TN /(FP+TN)Negative likelihood ratio (LR−) = FNR/TNRF1 score = 2 · (Precision · Recall) /(Precision + Recall)

 

精确度 Accuracy = (TP + TN) / Total 

精度  Precision = TP / (TP + FP)

召回率 Recall = TP / P

F1 = 2 · (Precision · Recall) /(Precision + Recall)

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值