Choose where to start
New to machine learning? Start with chapter 1 of the Core Course. Already code? Jump into The Math Behind ML or Modern Architectures.
New to programming?Epoch Zero PythonA free 12-week course that teaches Python on your own computer, from print() to a working Pac-Man. Then come back for chapter 1.See the Python course →Core Course
- Chapter 1What a Model Is: A Function with Knobs
- Chapter 2One Neuron, Many Inputs: The Dot Product
- Chapter 3Measuring Error: Choosing a Loss Function
- Chapter 4Which Way Is Downhill? Derivatives by Hand and by Nudging
- Chapter 5Let the Computer Do the Calculus: A Tiny Autograd Engine
- Chapter 6From Numbers to Arrays: Batches and Matrix Gradients
- Chapter 7The Training Loop: Gradient Descent in Practice
- Chapter 8Solving XOR: Why Networks Need a Hidden Layer
- Chapter 9Choosing Among Many: Classification with Softmax
- Chapter 10Smarter Steps: Momentum, RMSProp and Adam
- Chapter 11Too Good to Be True: Overfitting and Regularization
- Chapter 12Twenty Questions: Decision Trees
- Chapter 13Starting Right: Initialization and Normalization
- Chapter 14Real Data: Reading Handwritten Digits
- Chapter 15After Training: Saving Models and Making Predictions
- Chapter 16Same Weights Everywhere: From Dense Layers to Convolutions
- Chapter 17Capstone: A Tiny Attention-Based Language Model
Maths for ML
All of it on one page: the modules, the notation explorer and Read an equation.
- Lesson 1Letters and the little numbers: xᵢ, x², x⁽ⁱ⁾
- Lesson 2Plain, bold and capital letters; hats, bars and stars
- Lesson 3Σ and Π are for-loops
- Lesson 4Sets, ℝ and shapes: what W ∈ ℝ^(m×n) tells you
- Lesson 5Functions and arrows: f: ℝⁿ → ℝ, ↦ and f ∘ g
- Lesson 6Vectors: arrows and arrays
- Lesson 7The dot product and the angle between vectors
- Lesson 8Norms: how big is a vector?
- Lesson 9Linear combinations and span: which points can you reach?
- Lesson 10A matrix is a transformation
- Lesson 11Multiplying matrices: check the shapes first
- Lesson 12Transpose, identity, inverse and determinant
- Lesson 13Special matrices: diagonal, symmetric, orthogonal, triangular, sparse
- Lesson 14Tensors and broadcasting
- Lesson 15Eigenvectors: the directions a matrix only stretches
- Lesson 16The SVD: rotate, stretch, rotate
- Lesson 17PCA: the directions where the data varies most
- Lesson 18The derivative: slope, and sensitivity
- Lesson 19Partial derivatives and the gradient
- Lesson 20The chain rule, run backwards: backpropagation
- Lesson 21Jacobians and Hessians: derivatives as tables
- Lesson 22Probability, and probability given something
- Lesson 23Bayes' rule: updating on evidence
- Lesson 24Expectation, variance and covariance
- Lesson 25Common distributions: Bernoulli, categorical, Gaussian
- Lesson 26Sampling, i.i.d. data and likelihood
- Lesson 27The loss as a landscape
- Lesson 28Learning rates and momentum
- Lesson 29Convex and non-convex: valleys, traps and plateaus
- Lesson 30argmin, constraints and Lagrange multipliers
- Lesson 31Capstone: linear regression three ways
- Lesson 32Capstone: logistic regression from scratch
- Lesson 33Capstone: PCA on real handwritten digits
- Lesson 34Capstone: read three equations from real papers
The Math Behind MLReference notes
Condensed summaries of each topic, not step-by-step lessons. The Core Course is the one to work through.
- Chapter 1Linear Algebra, Vector Spaces & Matrix Calculus
- Chapter 2Probability Distributions, Maximum Likelihood & MAP
- Chapter 3Information Theory, Entropy & Divergence Measures
- Chapter 4Convexity, Optimization Dynamics & Duality
- Chapter 5Matrix Decompositions, SVD & Low-Rank Adaptation (LoRA)
- Chapter 6Deep Neural Representations & Normalization Mathematics
- Chapter 7Transformer Mathematics: Attention Scaling, RoPE & Latent Projections
- Chapter 8Continuous Flow Matching ODEs & Post-Training RL Mathematics
Modern ArchitecturesReference notes
Already know how networks are trained? Start at Chapter 2.
Condensed summaries of each topic, not step-by-step lessons. The Core Course is the one to work through.
- Chapter 1Modern Optimizers & Normalization Mechanics
- Chapter 2Scaled Dot-Product & Multi-Head Attention
- Chapter 3Modern Decoder-Only LLM Block (Llama / Mistral Style)
- Chapter 4Mixture of Experts (MoE) & Multi-Head Latent Attention (MLA)
- Chapter 5Diffusion Models & Rectified Flow Matching
- Chapter 6Post-Training RL for Reasoning LLMs (DPO & DeepSeek-R1 GRPO)