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()