Skip to content

Commit

Permalink
fix(curriculum): fixed grammar of "stay is in the order" (#54336)
Browse files Browse the repository at this point in the history
Co-authored-by: Hammadh <hammadh@ncit.gov.mv>
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 11, 2024
1 parent e88200e commit f291773
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -45,7 +45,7 @@ Now it is your turn! Set each of the variables in this cell correctly. (They sho

Create image generators for each of the three image data sets (train, validation, test). Use `ImageDataGenerator` to read / decode the images and convert them into floating point tensors. Use the `rescale` argument (and no other arguments for now) to rescale the tensors from values between 0 and 255 to values between 0 and 1.

For the `*_data_gen` variables, use the `flow_from_directory` method. Pass in the batch size, directory, target size (`(IMG_HEIGHT, IMG_WIDTH)`), class mode, and anything else required. `test_data_gen` will be the trickiest one. For `test_data_gen`, make sure to pass in `shuffle=False` to the `flow_from_directory` method. This will make sure the final predictions stay is in the order that our test expects. For `test_data_gen` it will also be helpful to observe the directory structure.
For the `*_data_gen` variables, use the `flow_from_directory` method. Pass in the batch size, directory, target size (`(IMG_HEIGHT, IMG_WIDTH)`), class mode, and anything else required. `test_data_gen` will be the trickiest one. For `test_data_gen`, make sure to pass in `shuffle=False` to the `flow_from_directory` method. This will make sure the final predictions stay in the order that our test expects. For `test_data_gen` it will also be helpful to observe the directory structure.


After you run the code, the output should look like this:
Expand Down

0 comments on commit f291773

Please sign in to comment.