Answers for "plot confusion matrix with seaborn"

0

confusion matrix seaborn

import seaborn as sns
import matplotlib.pyplot as plt

plt.figure(figsize = (10,7))
sns.heatmap(df_cm, annot=True)
Posted by: Guest on January-31-2021
1

plotting confusion matrix

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

Code answers related to "plot confusion matrix with seaborn"

Python Answers by Framework

Browse Popular Code Answers by Language