[PYTHON] About Confusion Matrix

About this article

Summarize the Confusion Matrix

What is Confusion Matrix?

One of the evaluation indexes in the classification.

Predicted Negative Predicted Positive
Actual Negative True Negative False Positive
Actual Positive False Negative True Positive

Precision = TP / (TP + FP) Recall = TP / (TP + FN)

from sklearn.metrics import confusion_matrix
cm = confusion_matrix(y_test, y_pred)

Recommended Posts

About Confusion Matrix
About the confusion matrix
About scatter_matrix (scatter matrix)
About LangID
About virtiofs
About python-apt
About Permission
About sklearn.preprocessing.Imputer
About gunicorn
About requirements.txt
About locale
About Opencv ②
About axis = 0, axis = 1
About Opencv ③
About import
About numpy
About pip
About Linux
About numpy.newaxis
About endian
About Linux
About import
Matrix multiplication
About Opencv ①
About Linux
About Linux
About Linux ①
About cv2.imread
About _ and __
About wxPython