from sklearn.neighbors import KNeighborsClassifier
import numpy as np
X = np.array([[1, 1], [2, 2], [3, 3]])
y = np.array([0, 1, 0])
model = KNeighborsClassifier(n_neighbors=3)
model.fit(X, y)
prediction = model.predict([[2.5, 2.5]])
print(prediction[0])
#Python #ML