Exercises
These exercises check the chapter's generalization ideas.
Enter 1 if validation loss is measured on training examples, or 2 if it is measured on held-out examples.
Compute it first, then check your number.
Training loss is high and validation loss is high. Enter 1 for likely underfitting or 2 for likely overfitting.
Compute it first, then check your number.
Let w = 5 and lambda = 0.2. What is lambda * w^2?
Compute it first, then check your number.
A layer has 50 activations. Dropout removes 20 in a training step. How many remain active?
Compute it first, then check your number.
Validation losses are [0.9, 0.6, 0.55, 0.7]. Which epoch has the lowest validation loss?
Compute it first, then check your number.
Each of 40 examples is converted into 5 safe variants. How many variants are available?
Compute it first, then check your number.
A model has 2,400 parameters and 300 training examples. How many parameters per example is that?
Compute it first, then check your number.