Intermediate level · Module 3: CNN Training and Optimization · Lesson 1 of 3
Reading Training Curves
Learners plot training and validation loss and accuracy, and diagnose underfitting, overfitting and learning-rate problems from the curves.
In this lesson you will
- Plot and interpret training curves
- Diagnose common training problems
Key concepts
training vs validation lossunderfittingoverfittinglearning rate too high or lownoise in curves
The lesson
Plot training and validation loss and accuracy after every epoch. Both falling together means learning is working. Validation loss rising while training loss falls means overfitting. Both staying high means underfitting.
A learning rate that is too high makes loss jump or explode; one that is too low makes it fall very slowly. Try a few values on a log scale (for example 0.1, 0.01, 0.001) for a few epochs each.
Curves are the main tool for deciding what to change next, so save them for every experiment along with its settings.
Step by step
- Record loss and accuracy per epoch in lists and plot them with Matplotlib.
- Train with three learning rates and compare the curves.
- Identify the best learning rate.
- Describe the curves of an overfitting run.
Practice activity
Run a small learning-rate experiment and write a diagnosis from the curves.
Expected result: Three sets of curves and a correct diagnosis with a chosen learning rate.
Check your understanding
-
What does rising validation loss with falling training loss mean?
Show answer
The model is overfitting.
-
What does a loss that jumps around or explodes suggest?
Show answer
The learning rate is too high.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.