Module resources

ML foundations

Checked sources to go further than the lessons. Back to the module.

Recommended learning sequence

Work through these in order.

  1. Underfitting vs. Overfitting (opens in a new tab)

    scikit-learn2026Documentation

    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.

  2. Validation curves: plotting scores to evaluate models (opens in a new tab)

    scikit-learn2026Documentation

    Then read how learning and validation curves are interpreted, including when more training data helps. This is the diagnosis tool from lesson 1.

  3. Cross-validation: evaluating estimator performance (opens in a new tab)

    scikit-learn2026Documentation

    Next, the official guidance on test sets, cross-validation and leakage through preprocessing, which is the discipline behind the train, validation and test split.

  4. Linear Models (ridge regression and lasso) (opens in a new tab)

    scikit-learn2026Documentation

    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.

  5. Dive into Deep Learning, Linear Regression (analytic solution, minibatch SGD, squared loss and Gaussian noise) (opens in a new tab)

    Aston Zhang, Zachary C. Lipton, Mu Li, Alexander J. Smola2026Book

    For lesson 2, the textbook derivation of linear regression: squared loss as Gaussian maximum likelihood, the analytic solution and minibatch SGD.

  6. Dive into Deep Learning, Softmax Regression (softmax and cross-entropy loss, derivative with respect to the logits) (opens in a new tab)

    Aston Zhang, Zachary C. Lipton, Mu Li, Alexander J. Smola2026Book

    Then the classification version: softmax, cross-entropy and the gradient that equals prediction minus label, the same form as the logistic derivation.

  7. Dive into Deep Learning, Momentum (ill-conditioned problems and the leaky average of gradients) (opens in a new tab)

    Aston Zhang, Zachary C. Lipton, Mu Li, Alexander J. Smola2026Book

    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)

    PyTorch2026Documentation

    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)

    PyTorch2026Documentation

    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)

    Robert Tibshirani1996PaperJournal of the Royal Statistical Society: Series B (Methodological), 58(1), 267-288

    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)

    Trevor Park, George Casella2008PaperJournal of the American Statistical Association, 103(482)

    Shows the Laplace-prior reading of the lasso that lesson 1 mentions. Read it only if you want the Bayesian view in full.

Books