From f6dfd54e4013f80dfad3c06dd5fe45bbe324acea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Gallou=C3=A9dec?= <45557362+qgallouedec@users.noreply.github.com> Date: Wed, 5 Oct 2022 10:53:36 +0200 Subject: [PATCH] note about memory --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0f32b2b..036277c 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,10 @@ Your code must be properly documented. It must follow the [PEP257 recommendation - Visibility Level: public - Project Configuration: Initialize repository with a README 3. Clone the repository. -```bash -git clone https://gitlab.ec-lyon.fr/<user>/image-classification -``` -4. In this tutorial you will use files that should not be pushed to the remote repository. To ignore them when committing, you can put their path in a file named `.gitignore`. For simplicity, we use the [`.gitignore` file](https://github.com/github/gitignore/blob/main/Python.gitignore) recommended by GitHub for python projects. + ```bash + git clone https://gitlab.ec-lyon.fr/<user>/image-classification + ``` +4. In this tutorial you will use files that should not be pushed to the remote repository. To ignore them when committing, you can put their path in a file named `.gitignore`. For simplicity, we use the [`.gitignore` file](https://github.com/github/gitignore/blob/main/Python.gitignore) recommended by GitHub for Python projects. ## Prepare the CIFAR dataset @@ -73,8 +73,8 @@ This database can be obtained at the address https://www.cs.toronto.edu/~kriz/ci - `labels_train` the training labels, and - `k` the number of of neighbors. This function must return the predicted labels for the elements of `data_train`. + **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} 3. Write the function `evaluate_knn` taking as parameters: - `data_train` the training data, - `labels_train` the corresponding labels, -- GitLab