Read a training and validation loss curve
Check signs and decimal points before moving to the next value. · 172 words
A loss curve plots model error over training. Training loss is measured on examples used to update the weights; validation loss is measured on separate held-out examples. An epoch is one full pass through the training data. For example, a healthy curve might show training losses of 0.90, 0.58, and 0.30 at epochs 1, 3, and 5, with validation losses of 0.95, 0.63, and 0.35. Both fall while their gap stays small, so the model is learning without strong overfitting.
Another curve reveals overfitting. At epochs 1 to 5, training losses are 0.90, 0.72, 0.55, 0.43, and 0.38, while validation losses are 0.95, 0.78, 0.68, 0.64, and 0.72. Validation loss is lowest at epoch 4. At epoch 5, training loss improves but validation loss worsens: the model is fitting patterns that do not generalize, meaning they do not help on new examples. Stop near epoch 4 or keep that checkpoint. If both losses stayed high and close, the curve would suggest underfitting, meaning the model has not learned the training patterns either.
Check your recall
In the second curve, which epoch gives the best validation loss, and why should training stop near that point?
Check your answer
Epoch 4 gives the lowest validation loss, 0.64. At epoch 5, training loss falls to 0.38 but validation loss rises to 0.72, indicating overfitting.
Sources and credits
Original KeyTouch lesson. Background reading · Google · Linear regression.