ageron / ageron/handson-ml3

[QUESTION] Chapter 14: `data_augmentation` for classification of flowers not actually used?

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
14.1k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

In cell 48 of the notebook, the variable `data_augmentation` is created:
```python
data_augmentation = tf.keras.Sequential([
tf.keras.layers.RandomFlip(mode="horizontal", seed=42),
tf.keras.layers.RandomRotation(factor=0.05, seed=42),
tf.keras.layers.RandomContrast(factor=0.2, seed=42)
])
```

However, it doesn't seem to be used when training/finetuning the model even though the text in the book mentions: "let's create a data augmentation model that we will embed in our final model". (page 519)

Probably, the `data_augmentation` model should be used before the Xception model is called?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.