Learn Before
Concept
score(X_test, y_test) for sklearn.neighbors.KNeighborsClassifier
The score method returns a float between 0 and 1 indicating the percentage of test labels predicted correctly. This can be understood as calling something like predict() on X_test and then comparing the output labels to y_test. A high percentage indicates greater accuracy. This method can be used after the model has been fitted
0
1
Updated 2020-10-19
Contributors are:
Who are from:
Tags
Data Science