混淆矩阵相关指标(n,spe,auc,recall,f1)计算(R语⾔)ConfusionMatrix
image.png
由上表可以计算的指标有:everythingatonce
Accuracy = (TP+TN)/(P+N)
melodrama
Error Rate = 1 – Accuracy = (FP+FN)/(P+N)spacebar
Fal Positive Rate = Fallout = FP/N
True Positive Rate = Recall = Sensitivity = TP/P
Fal Negative Rate = Miss = FN/Paccommodate
True Negative Rate = Specificity = TN/N
Positive Predictive Value = Precision = TP/(TP+FP)
Negative Predictive Value = TN/(TN+FN)
Prediction-conditioned Fallout = FP/(TP+FP)
Prediction-conditioned Miss = FN/(TN+FN)
bitcRate of Positive Predictions = Detection Prevalence = (TP+FP)/(P+N)
Rate of Negative Predictions = (TN+FN)/(P+N)
soundmanPrevalence = (TP+FN)/(P+N)
Detection Rate = TP/(P+N)
驼色英文Balanced Accuracy = (Sensitivity+Specificity)/2contrail
company of heroes
MCC(Matthews correlation coefficient) = (TP TN - FP FN)/[(TP+FP)(TP+FN)(TN+FP)(TN+FN)]^(1/2)
曹刿论战原文及翻译以ROCR⾃带的数据集ROCR.simple为例: