Created
September 9, 2021 14:48
-
-
Save sgsg704/f882b51b991f6f387bdcf355e3e9bf1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# confusion matrix | |
cmap1 = sns.diverging_palette(275,150, s=40, l=65, n=6) | |
plt.subplots(figsize=(12,8)) | |
cf_matrix = confusion_matrix(y_test, y_pred) | |
sns.heatmap(cf_matrix/np.sum(cf_matrix), cmap = cmap1, annot = True, annot_kws = {'size':15}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment