Skip to content
/ Glossary

Confusion Matrix

A table used to describe the performance of a classification model, essential for understanding how a model's predictions compare to the true labels.
Definition

Confusion Matrix is a specific table layout that allows visualization of the performance of an algorithm, typically a supervised learning one. Each row of the matrix represents the instances in a predicted class, while each column represents the instances in an actual class (or vice versa).

The matrix makes it easy to see if the system is confusing two classes (i.e., commonly mislabeling one as another). It is especially useful in binary classification to understand the true positives, true negatives, false positives, and false negatives. This breakdown is critical for calculating more advanced metrics such as accuracy, precision, recall, and F1 score, which provide deeper insights into the model's performance, especially in cases where class distributions are imbalanced.

Examples/Use Cases:

In a medical diagnosis application where a model is trained to classify MRI images as either indicating the presence of a tumor ('positive') or not ('negative'), the confusion matrix would be a 2x2 table. The rows could represent the actual classifications ('positive' and 'negative'), and the columns could represent the model's predictions ('predicted positive' and 'predicted negative'). A perfect model would only have non-zero values in the diagonal of the matrix (top left and bottom right), indicating true positives and true negatives, respectively.

Any non-zero values off the diagonal (top right and bottom left) would indicate errors in the model's predictions, with the top right being false positives (predicting a tumor when there isn't one) and the bottom left being false negatives (failing to detect a tumor when there is one). This matrix helps in understanding not just the model's accuracy but also how its errors are distributed, which is crucial for assessing the risk associated with its use in real-world applications.

/ GET STARTED

Join the #1 Platform for AI Training Talent

Where top AI builders and expert AI Trainers connect to build the future of AI.
Self-Service
Post a Job
Post your project and get a shortlist of qualified AI Trainers and Data Labelers. Hire and manage your team in the tools you already use.
Managed Service
For Large Projects
Done-for-You
We recruit, onboard, and manage a dedicated team inside your tools. End-to-end operations for large or complex projects.
For Freelancers
Join as an AI Trainer
Find AI training and data labeling projects across platforms, all in one place. One profile, one application process, more opportunities.