diff --git a/knn.py b/knn.py index 02df428d77775902bf40e51fb3dd19bf21bd8c31..5ae59e3b588cd469d7c918a44fa77e6695867d41 100644 --- a/knn.py +++ b/knn.py @@ -50,7 +50,7 @@ def bench_knn(): k_indices = [i for i in range(20) if i!=0] accuracies = [] - # Loop on the k_indices to get all the accuracies + # Loop on the k_indices to get all the accuracies for k in k_indices: accuracy = evaluate_knn(data_train, labels_train, data_test, labels_test, k) accuracies.append(accuracy)