text_html_output_1.png
from sklearn.neighbors import KNeighborsClassifier

model_knn = KNeighborsClassifier()
model_knn.fit(X_train, y_train)
print('Training accuracy: ', model_knn.score(X_train, y_train))
print('Testing accuracy: ', model_knn.score(X_test, y_test))