Skip to content

Instantly share code, notes, and snippets.

@jeetaf
Created July 13, 2021 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeetaf/89c8bfd3b54e2b4be29b727bce818522 to your computer and use it in GitHub Desktop.
Save jeetaf/89c8bfd3b54e2b4be29b727bce818522 to your computer and use it in GitHub Desktop.
y_pred = model.predict_classes(X_test)
y_true = np.argmax(y_test, axis = 1)
cf=confusion_matrix(y_true, y_pred)
sns.heatmap(cf, annot=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment