Skip to content

Instantly share code, notes, and snippets.

@purva91
Created Sep 10, 2019
Embed
What would you like to do?
#Setup a knn classifier with k neighbors
knn = KNeighborsClassifier(8)
knn.fit(X_train,y_train)
knn.score(X_test,y_test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment