Skip to content
Snippets Groups Projects
Commit c10b868a authored by Quentin Gallouédec's avatar Quentin Gallouédec
Browse files

typo : train -> test

parent f9f00b4e
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ This database can be obtained at the address https://www.cs.toronto.edu/~kriz/ci ...@@ -86,7 +86,7 @@ This database can be obtained at the address https://www.cs.toronto.edu/~kriz/ci
- `dists` the distance matrix between the train set and the test set, - `dists` the distance matrix between the train set and the test set,
- `labels_train` the training labels, and - `labels_train` the training labels, and
- `k` the number of of neighbors. - `k` the number of of neighbors.
This function must return the predicted labels for the elements of `data_train`. This function must return the predicted labels for the elements of `data_test`.
**Note:** if the memory occupation is too important, you can use several batches for the calculation of the distance matrix (loop on sub-batches of test data). **Note:** if the memory occupation is too important, you can use several batches for the calculation of the distance matrix (loop on sub-batches of test data).
3. Write the function `evaluate_knn` taking as parameters: 3. Write the function `evaluate_knn` taking as parameters:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment