Skip to content

Instantly share code, notes, and snippets.

@purva91
Created September 10, 2019 12:47
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 purva91/e64eb33c0e68ef86f0f3e71e96882517 to your computer and use it in GitHub Desktop.
Save purva91/e64eb33c0e68ef86f0f3e71e96882517 to your computer and use it in GitHub Desktop.
y_pred = knn.predict(X_test)
confusion_matrix(y_test,y_pred)
pd.crosstab(y_test, y_pred, rownames=['Actual'], colnames=['Predicted'], margins=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment