Confusion Matrix 混淆矩陣
YC Note – 如何辨別機器學習模型的好壞?秒懂Confusion Matrix
Talse / False, Positives / Negatives
T: Correct
F: Wrong
P: Predict Positive
N: Predict Negative
Actual \ Predict | Positive | Negative |
---|---|---|
Positive | TP | FN |
Negative | FP | TN |
TP: Predict Positive and correct
FN: Predict Negative but wrong
FP: Predict Positive but wrong
TN: Predict Negative and correct
[統計筆記] Positive Predictive Value (PPV) & Negative Predictive Value (NPV) – Lazy Lazy programming
Precision 準確率 / Positive Predictive Value (PPV)
判斷陽性時,真的陽性機率
當一個人被「診斷出得病」時,此人「真的得病」的機率
Negative Predictive Value (NPV)
判斷陰性時,真的陰性機率
當一個人被「診斷沒得病」時,此人「真的沒得病」的機率是多少
Recall 召回率 / Sensitivity 靈敏度 / True Positive Rate 真陽性率
實際為陽性的樣本中,判斷為陽性的比例
計算方法的分母是由 判斷正確的陽性 和 判斷錯誤的陰性 組成
如果想令 Recall 100%,可以判定所有樣本為陽性
Specificity 特異度 / True Negative Rate 真陰性率
實際為陰性的樣本中,判斷為陰性的比例
如果想令 Specificity 100%,可以判定所有樣本為陰性
F-measure / F1-score
If to , = TPR
If to 0, = PPV
Area under curve (AUC)
分類器評估方法 — ROC曲線、AUC、Accuracy、PR曲線 | by 行銷資料科學 | Marketingdatascience | Medium
Receiver operation characteristics curve (ROC) 接收者操作特性曲線
圖解 ROC 曲線:精通 ROC 與 AUC 用法、輕鬆記熟定義 • 好豪筆記
Receiver operating characteristic - Wikipedia
FPR 為 X 軸
TPR 為 Y 軸 (Recall)
PRC (Precision-Recall Curve) / PR 曲線 / 精確召回曲線
召回率 Recall 為 X 軸
精確率 Precision 為 Y 軸