Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

confusion matrix code

cm = confusion_matrix(y_test, clf_pred)
print(cm)
print(accuracy_score(y_test, clf_pred))
plt.figure(figsize=(10,5))
sns.heatmap(cm, annot=True, fmt="d", linewidths=.5)
plt.show()
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #confusion #matrix #code
ADD COMMENT
Topic
Name
5+5 =