Labs / Foundations
Underfitting vs overfitting
Change polynomial degree, training size, and noise; watch training and validation error split apart.
Theory and worked examples: Overfitting and the bias-variance trade-off
Underfitting vs overfitting
Synthetic data from y = sin(πx) + noise. Blue dots train the model; 200 hidden validation points score it.
true functiondegree-3 fittraining points
training errorvalidation errorcurrent degree