mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-01 04:02:05 -04:00
chore(i18n,learn): processed translations (#48105)
This commit is contained in:
@@ -62,7 +62,7 @@ The `plotImages` function will be used a few times to plot images. It takes an a
|
||||
|
||||
## Cell 5
|
||||
|
||||
Recreate the `train_image_generator` using `ImageDataGenerator`.
|
||||
Recreate the `train_image_generator` using `ImageDataGenerator`.
|
||||
|
||||
Since there are a small number of training examples, there is a risk of overfitting. One way to fix this problem is by creating more training data from existing training examples by using random transformations.
|
||||
|
||||
@@ -90,7 +90,7 @@ Run this cell to visualize the accuracy and loss of the model.
|
||||
|
||||
Now it is time to use your model to predict whether a brand new image is a cat or a dog.
|
||||
|
||||
In this cell, get the probability that each test image (from `test_data_gen`) is a dog or a cat. `probabilities` should be a list of integers.
|
||||
In this cell, get the probability that each test image (from `test_data_gen`) is a dog or a cat. `probabilities` should be a list of integers.
|
||||
|
||||
Call the `plotImages` function and pass in the test images and the probabilities corresponding to each test image.
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ The file `RPS.py` shows an example function that you will need to update. The ex
|
||||
|
||||
## Development
|
||||
|
||||
Do not modify `RPS_game.py`. Write all your code in `RPS.py`. For development, you can use `main.py` to test your code.
|
||||
Do not modify `RPS_game.py`. Write all your code in `RPS.py`. For development, you can use `main.py` to test your code.
|
||||
|
||||
`main.py` imports the game function and bots from `RPS_game.py`.
|
||||
|
||||
@@ -48,7 +48,7 @@ play(player, quincy, 1000, verbose=True)
|
||||
|
||||
Click the "run" button and `main.py` will run.
|
||||
|
||||
## Testing
|
||||
## Testing
|
||||
|
||||
The unit tests for this project are in `test_module.py`. We imported the tests from `test_module.py` to `main.py` for your convenience. If you uncomment the last line in `main.py`, the tests will run automatically whenever you hit the "run" button.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user