Skip to content

Instantly share code, notes, and snippets.

@purva91
Created Sep 9, 2019
Embed
What would you like to do?
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