text_plain_output_1.png
from sklearn.neighbors import KNeighborsClassifier

knn = KNeighborsClassifier(n_neighbors=5)

knn.fit(x_train, y_train)

predict = knn.predict(x_test)
predict

knn.predict_proba(x_test)