Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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