Turn confusion counts into actionable multiclass performance insights. Inspect per-class metrics, supports, and error distributions. Spot weak labels faster using summaries, exports, and heatmaps.
Paste class labels and a square confusion matrix. Use rows for actual classes and columns for predicted classes.
This sample matrix uses four classes. The same values are available through the example button above.
| Actual \ Predicted | Class A | Class B | Class C | Class D |
|---|---|---|---|---|
| Class A | 52 | 4 | 2 | 1 |
| Class B | 5 | 48 | 6 | 1 |
| Class C | 2 | 7 | 45 | 3 |
| Class D | 1 | 2 | 4 | 50 |
A multiclass confusion matrix compares actual labels against predicted labels for three or more classes. Diagonal cells show correct predictions, while off-diagonal cells show where the model confuses one class with another.
This calculator assumes rows are actual classes and columns are predicted classes. Keep that orientation consistent when pasting your matrix, or the class-wise metrics will be interpreted incorrectly.
Macro metrics average every class equally. Weighted metrics give larger classes more influence. Use macro values to inspect fairness across classes and weighted values to reflect dataset composition.
In single-label multiclass classification, each sample gets one prediction. Under that setting, micro precision, micro recall, and micro F1 collapse to overall accuracy.
Yes. Weighted counts or normalized frequencies can be entered, but interpret totals carefully. Accuracy-like ratios still work, while support and raw mistake counts no longer represent whole observations.
Specificity measures how well one class avoids false positives in a one-vs-rest comparison. Higher specificity means the model rarely predicts that class when it should not.
MCC stays informative even when classes are imbalanced. It rewards correct structure across the full matrix and penalizes misleading performance that accuracy alone can hide.
Small and medium matrices work comfortably in most browsers. Very large matrices remain possible, but wider tables, denser heatmaps, and PDF exports become harder to read.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.