knn = KNeighborsClassifier(n_neighbors=n) print("Number of neighbors is: {}".format(n)) train_predict(knn, X_train_cv, y_train_cv, X_test_cv, y_test_cv) clf_ = knn.fit(X_train, y_train) y_pred = clf_.predict(X_test) ...