Answers for "function to print confusion matrix in python"

6

confusion matrix python

from sklearn.metrics import confusion_matrix
conf_mat = confusion_matrix(y_test, y_pred)
sns.heatmap(conf_mat, square=True, annot=True, cmap='Blues', fmt='d', cbar=False)
Posted by: Guest on November-23-2021

Code answers related to "function to print confusion matrix in python"

Python Answers by Framework

Browse Popular Code Answers by Language