text_plain_output_2.png application_vnd.jupyter.stderr_output_1.png
from sklearn.metrics import confusion_matrix, classification_report

import matplotlib.pyplot as plt

import seaborn as sns

plt.figure(figsize=(6, 6))
cm = confusion_matrix(y_test, grid_predict)
sns.set(font_scale=1.25)
sns.heatmap(cm, annot=True, fmt='g', cbar=False, cmap='Blues')
plt.title('Confusion matrix')