Skip to content

Instantly share code, notes, and snippets.

@purva91
Created September 9, 2019 12:59
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/4239c82a7ca2da2f44141a73486d9460 to your computer and use it in GitHub Desktop.
Save purva91/4239c82a7ca2da2f44141a73486d9460 to your computer and use it in GitHub Desktop.
knn = KNeighborsClassifier(n_neighbors = 14)
#Fit the model
knn.fit(X_train,y_train)
#get the score
knn.score(X_test,y_test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment