Created
September 9, 2019 12:59
-
-
Save purva91/4239c82a7ca2da2f44141a73486d9460 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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