Skip to content

Machine Learning

Build intuition first. Start with what learning means, fit a line, follow a slope downhill, then classify with a boundary. Bend it with features and a neural network, and check whether it generalizes. Extend the supervised toolbox with evaluation, generative models, margins, neighbours, trees, and ensembles. Then look for structure without labels: k-means, Gaussian mixtures, and PCA. After that, let the same ideas handle images and text: convolutions, embeddings, next-token prediction, attention, and transformers. The final lessons train deep networks, assemble a base model into an assistant, and study decisions over time with MDPs and reinforcement learning. All 25 published lessons are grouped below; the Start here path stays a shorter recommended core.

Start here

The recommended path through the published lessons. Read them in order, or jump to a topic you want to review.

  1. 1What Is Machine Learning?15 min
  2. 2Linear Regression & Loss25 min
  3. 3Gradient Descent25 min · playground
  4. 4Classification & Logistic Regression25 min · playground
  5. 5When a Line Is Not Enough25 min · playground
  6. 6Neural Networks25 min · playground
  7. 7Backpropagation25 min
  8. 8Overfitting, Bias–Variance & Regularization25 min · playground
  9. 9Convolutional Neural Networks30 min · playground
  10. 10Representation Learning & Embeddings25 min
  11. 11Predicting the Next Token30 min
  12. 12Attention30 min · playground
  13. 13The Transformer30 min · playground

Foundations

What learning means, linear models, loss, and the optimization loop

Supervised Learning

Classification, evaluation, margins, neighbours, trees, and ensembles

Unsupervised Learning

Clustering, mixtures, and finding structure without labels

Deep Learning

Networks, backpropagation, training tricks, and representations

Transformers & LLMs

Next-token prediction, attention, and the modern language-model stack

Reinforcement Learning

Decisions over time, rewards, and learning from interaction

Interactive playgrounds

Five playgrounds you can drive directly. Every path, boundary, loss value, accuracy score, kernel response, neighbour vote, tree region, cluster assignment, and attention weight is computed from the model, not copied from a table.

How to use this track

Each lesson follows the same rhythm: see a picture, name what you saw, then try it on a small example. New terms are defined in plain language before they appear in a formula. Worked examples use numbers you can reproduce with a calculator, and the interactive stories let you scrub the same idea forwards and backwards.

The track leans on Math chapters as they become useful: least squares and linear algebra for lines and features, multivariable calculus for gradients, numerical methods for iterations, probability & statistics for classification and language models, and Fourier transforms for the convolution view. Read the lesson first and visit them when a symbol feels unfamiliar.

Site soundtrack