battelle.knn.KNearestNeighborsClassifier.predict

KNearestNeighborsClassifier.predict(x)

Predict the class label for the provided point

Parameters

x (array-like of shape (n_features)) – The query point

Returns

y – Class label for point x

Return type

Class label or ndarray<Class label> of shape (n_outputs)