Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created February 7, 2021 14:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amankharwal/0f378c21a5e6c0d329a4399c3c8eecb6 to your computer and use it in GitHub Desktop.
y_pred_mnb = mnb.fit(iris.data, iris.target).predict(iris.data)
cnf_matrix_mnb = confusion_matrix(iris.target, y_pred_mnb)
print(cnf_matrix_mnb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment