All interactive figures¶
Every interactive figure on the site, in one place. Each one also appears on the pages where it teaches something; play with it here, then follow the link to the idea behind it.
Dot product¶
Two draggable 2-D vectors: dot product, cosine, projection.
Linear maps¶
A 2×2 matrix acting on the grid and unit circle; eigenvectors, determinant.
Gradient descent¶
Descent paths on a 2-D loss surface; learning rate, momentum, Adam.
Activation functions¶
ReLU, GELU, SiLU, sigmoid, tanh and their derivatives.
Bayesian updating¶
Beta prior + coin flips → posterior.
Entropy and KL divergence¶
Two distributions: entropy, cross-entropy, KL both ways.
PCA in 2-D¶
A point cloud, its principal axes and the projection.
Bias and variance¶
Polynomial degree vs noisy data: train/test error.
Perceptron¶
A linear classifier learning a 2-D boundary.
k-means¶
K-means stepping on 2-D points.
Neural network playground¶
A small MLP training in the browser on 2-D datasets.
Backpropagation on a graph¶
A computation graph: forward values, backward gradients, step by step.
Convolution¶
A kernel sliding over a small image; output feature map.
Learning-rate schedules¶
Warm-up + cosine / linear / step decay curves.
Softmax and temperature¶
Logits → softmax probabilities; temperature.
Sampling: top-k and top-p¶
Greedy / temperature / top-k / top-p on one distribution.
BPE tokeniser¶
Byte-pair merges applied step by step to typed text.
Attention heatmap¶
A sentence's attention weights; pick a query token.
Positional encoding¶
Sinusoidal encoding heatmap and RoPE rotation.
KV cache¶
Generation with and without a KV cache: work per step.
Mixture-of-experts router¶
Tokens routed to top-k experts; load balance.
Scaling laws¶
Loss vs compute power law; Chinchilla-optimal N and D for a budget.
Diffusion noising¶
Forward noising of a 2-D shape over t; noise schedules.
Multi-armed bandit¶
Ε-greedy vs UCB vs Thompson on a k-armed bandit.
Grid world¶
Value iteration / policy on a small grid world.
Quantisation¶
Weights → INT8 / INT4: grid, histogram, error.
Roofline model¶
Arithmetic intensity vs attainable FLOP/s on GPU presets.
RAG pipeline¶
Chunk → embed → retrieve → answer on a toy corpus.
AI timeline¶
The AI timeline, filterable by era and theme (history track).