Skip to content

Instantly share code, notes, and snippets.

@Souldiv
Created March 11, 2019 17:26
Show Gist options
  • Save Souldiv/8c8c6112306bc9e57cf4ff8f34e174b4 to your computer and use it in GitHub Desktop.
Save Souldiv/8c8c6112306bc9e57cf4ff8f34e174b4 to your computer and use it in GitHub Desktop.
import seaborn as sns
import matplotlib.pyplot as plt
# For Notebooks
%matplotlib.pyplot as plt
def make_plot(y_true, y_pred):
df_cm = confusion_matrix(y_true, y_pred)
sns.set()
_ = sns.heatmap(df_cm, annot=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment