(a) confusion matrix | |||
---|---|---|---|
 |  | Predicted class | |
Positive | Negative | ||
Actual class | Positive | True positive | False negative |
 | Negative | False positive | True negative |
(b) Performance evaluation metrics | |||
---|---|---|---|
Matrics | Definition | ||
Accuracy | (TP + TN) / (TP + FP + FN + TN) | ||
Precision | TP / (TP + FP) | ||
Recall | TP / (TP + FN) | ||
F1 score | 2 × ((Recall × Precision))/(Recall + Precision) |