text_plain_output_1.png
from sklearn import tree

from sklearn.neighbors import KNeighborsClassifier

knn = KNeighborsClassifier(n_neighbors=5)

knn.fit(x_train, y_train)

predict = knn.predict(x_test)
predict

model = tree.DecisionTreeClassifier(criterion='entropy', random_state=0)

model.fit(x_train, y_train)

predict = model.predict(x_test)
predict