text_plain_output_1.png
from sklearn.metrics import accuracy_score

from sklearn.neighbors import KNeighborsClassifier

from sklearn.neighbors import KNeighborsClassifier
classifier2 = KNeighborsClassifier(n_neighbors=3, metric='minkowski', p=1)
classifier2.fit(X_train, Y_train)
Y_pred2 = classifier2.predict(X_test)
print('Accuracy = ', accuracy_score(Y_test, Y_pred2) * 100, '%')