Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to plot confusion matrix

import seaborn as sns
from sklearn.metrics import confusion_matrix
# y_test  : actual labels or target
# y_preds : predicted labels or target
sns.heatmap(confusion_matrix(y_test, y_preds),annot=True);
Source by localhost #
 
PREVIOUS NEXT
Tagged: #plot #confusion #matrix
ADD COMMENT
Topic
Name
4+7 =