Lectures

Each lecture lists its slides and reading first, then any recording, then its notebooks. Slides and notebooks come from ml-teaching, which also lists all slides and all notebooks.

SlidesFull recordingNotebookReading

Foundations

Lectures 1–2

Prerequisite test

An open-book, open-internet test, required to take the course.

Lecture 01

Introduction and logistics

Lecture 02

Conventions, metrics, classification and regression

Trees, model fit and ensembles

Lectures 3–7
Lecture 03

Decision trees I

Lecture 04

Decision trees II; bias and variance

Lecture 05

Tutorial: NumPy, Pandas and classes; cross-validation

Lecture 06

Random forests

Lecture 07

Tutorial: random forest feature importance, meshgrid and contour plots

Linear models and optimisation

Lectures 8–14
Lecture 08

Linear regression

Lecture 09

Linear regression: basis functions

Lecture 10

Linear regression: geometric interpretation, multicollinearity and dummy variables

Lecture 11

Gradient descent

Lecture 12

Gradient descent (continued)

Lecture 13

Movie recommendation and matrix factorisation

Lecture 14

Regularised linear regression: ridge and lasso

Classification

Lectures 15–18
Lecture 15

Logistic regression

Lecture 16

Logistic regression (continued)

Lecture 17

Tutorial: convexity

Lecture 18

Weighted linear regression; convexity of the cross-entropy loss and IRLS

Neural networks

Lectures 19–26
Lecture 19

Precision–recall curves; multilayer perceptrons I

Lecture 20

Multilayer perceptrons I (continued)

Lecture 21

Multilayer perceptrons II

Lecture 22

Autograd

Lecture 23

Next-token prediction

Lecture 24

Convolutional neural networks I; 1D CNNs

Lecture 25

Convolutional neural networks II

Lecture 26

Tutorial: object detection and setting up Kaggle

Unsupervised learning, neighbours and reinforcement learning

Lectures 27–29
Lecture 27

Unsupervised learning

Lecture 28

K-nearest neighbours and approximate KNN

Lecture 29

Reinforcement learning

Support vector machines

Lectures 30–33
Lecture 30

Support vector machines I

Lecture 31

Support vector machines II: kernels

Lecture 32

Constrained optimisation

Lecture 33

Support vector machines: soft margin

Slides are the PDF handouts used in class. Quiz days are listed under Assessment.