Machine learning with football · Chapter 7 · Datasets and overfitting

Interpreting loss curves

Four shapes of loss curve and what each one says about your training.

Estimated time: 10 minutes · page 11 of 12

Reading the curve

A healthy loss curve drops steeply, then flattens out. Chapter 2 showed one. Other shapes point at specific problems.

ShapeLikely causeTry
Jumps around, never settlesbad rows, a learning rate too bigcheck the data against a schema, lower the rate, train on a few trusted examples first
Falls, then shoots upa NaN, or a burst of outliers in one batchlook for divisions by zero, shuffle better
Training down, validation upoverfittinga simpler model, more regularization, sets that look alike
Settles, then a square waveunshuffled data, such as all August matches firstshuffle the training set

The board shows the third shape for real. Switch λ to 0.02 and it turns into the healthy kind.

Check yourself

The loss jumps around wildly instead of falling. Which of these could help? Pick all of them.
The loss falls nicely, then suddenly shoots up. What are the likely causes? Pick two.
The loss settles, then moves up and down in a regular square-wave pattern. Most likely?

Leagues