Description:
| label = + | label = - |
---|
predict + | tp | fp |
predict - | fn | tn |
- Accuracy: % of correct predictions
- accuracy=tp+fp+tn+fntp+tn
- Precision Metric: % of positive predictions that are correct
- Recall Metric: % of correct positive labels that are found
- F Metric
- measure assess the trade-off between precision and recall
- F=αP1+(1−α)R11=β2P+R(β2+1)PR
- Usually, prefer balanced F-1 measure
- β=1, that is α=1/2
- Harmonic mean F=P+R2PR
- F_1 score =2×Precision+RecallPrecision×Recall=2tp+fp+fn2tp
Symmetric vs asymmetric metrics:
Symmetric metrics | Asymmetric metrics |
---|
Treat all classes the same | Measures a model’s performance w.r.t. a class |
Accuracy | F1, recall, precision, ROC |