Module resources
ML foundations
Checked sources to go further than the lessons. Back to the module.
Recommended learning sequence
Work through these in order.
Underfitting vs. Overfitting (opens in a new tab)
Start by running it: a short script that fits polynomials of degree 1, 4 and 15 to noisy data. Seeing underfitting and overfitting move before you read the theory gives lesson 1 a picture to hang on.
Validation curves: plotting scores to evaluate models (opens in a new tab)
Then read how learning and validation curves are interpreted, including when more training data helps. This is the diagnosis tool from lesson 1.
Cross-validation: evaluating estimator performance (opens in a new tab)
Next, the official guidance on test sets, cross-validation and leakage through preprocessing, which is the discipline behind the train, validation and test split.
Linear Models (ridge regression and lasso) (opens in a new tab)
Now the reference for ridge, lasso, elastic net and the other linear models the module uses. Read the ridge and lasso sections with the lesson 1 worked example beside you.
For lesson 2, the textbook derivation of linear regression: squared loss as Gaussian maximum likelihood, the analytic solution and minibatch SGD.
Then the classification version: softmax, cross-entropy and the gradient that equals prediction minus label, the same form as the logistic derivation.
Close with optimisation: a chapter that draws the narrow-valley problem and shows how momentum changes the path, before you meet Adam.
All resources
Official documentation
torch.optim.SGD (opens in a new tab)
Shows the exact momentum update PyTorch uses and warns that its convention differs from other frameworks, so momentum settings may not transfer.
torch.optim.Adam (opens in a new tab)
The Adam update with bias correction and the default hyperparameters, written as an algorithm you can compare with the lesson's formula.
Research papers
Regression Shrinkage and Selection Via the Lasso (opens in a new tab)
The original lasso paper. Short enough to read after lesson 1, and it explains in its own words why the absolute-value constraint produces exact zeros.
The Bayesian Lasso (opens in a new tab)
Shows the Laplace-prior reading of the lasso that lesson 1 mentions. Read it only if you want the Bayesian view in full.
Books
The standard graduate reference for the bias-variance decomposition and the optimism of training error. A free PDF from the authors. Read the chapters on model assessment and linear methods selectively; it is dense.