The Confusion Matrix

A confusion matrix sorts a classifier's guesses into four counts, true positives, false positives, false negatives and true negatives, so you can see which mistakes it makes, and scikit-learn's confusion_matrix puts the actual class in rows and the guessed class in columns, in sorted label order.

By

Updated

Cheat sheet: The Confusion Matrix
Category
Machine Learning
Level
Journeyman
Tags
ai, Confusion Matrix, False Negative, False Positive, Positive Class, python, True Negative, True Positive