Map 1 · Building and training a network · Step 9

Regularise

How do I close the gap between training and validation?

Key formula

Fact or figure

Inverted dropout scales the kept units by in training, so nothing changes at test time.

Skip this step and…

Forgetting model.eval() leaves dropout on during evaluation, giving noisy, worse results.

Digits example

Small shifts and rotations of each digit as augmentation (never 180°, which turns a 6 into a 9), dropout before the output layer, early stopping.

Learn it

Taught in Section 9 (Regularisation) of the course. The map follows the deep learning workflow, the order you build a model in; the course teaches in the order that is easiest to learn, so the numbers can jump.

How it connects

← Back to the whole map