Overview
The confusion matrix is the foundation for almost all classification metrics. It provides a clear breakdown of exactly where the model is making mistakes.
The Four Quadrants
- True Positive (TP): Predicted positive, actually positive.
- True Negative (TN): Predicted negative, actually negative.
- False Positive (FP): Predicted positive, actually negative (Type I Error).
- False Negative (FN): Predicted negative, actually positive (Type II Error).
Importance
It helps developers understand if a model is biased toward a certain class or if it's struggling with a specific type of error.