Actual | Predicted |
---|
Positive prediction | Negative prediction |
---|
Positive Class | True positive (TP) | False negative (FN) |
Negative Class | False positive (FP) | True negative (TN) |
- Accuracy = TP + TN / (TP + FP + FN + TN)
- Precision = TP / (TP + FP)
- Recall = TP / (TP + FN)
- F1 score = (2 * Precision * Recall) / (Precision + Recall)