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.
- 1What Is Machine Learning?
- 2Linear Regression & Loss
- 3Gradient Descent
- 4Classification & Logistic Regression
- 5When a Line Is Not Enough
- 6Neural Networks
- 7Backpropagation
- 8Overfitting, Bias–Variance & Regularization
- 9Convolutional Neural Networks
- 10Representation Learning & Embeddings
- 11Predicting the Next Token
- 12Attention
- 13The Transformer
Foundations
What learning means, linear models, loss, and the optimization loop
What Is Machine Learning?Rules versus examples, AI / ML / deep learning, learning signals, label leakage, and training versus inference
Linear Regression & LossPredictions, residuals, mean squared error, the least-squares line, and a loss surface you can descend
Gradient DescentLoss, slopes, learning rates, and a narrow valley — built from one small curve you can check by hand
Supervised Learning
Classification, evaluation, margins, neighbours, trees, and ensembles
Classification & Logistic RegressionSigmoid probabilities, cross-entropy, thresholding, and the line where the model changes its mind
When a Line Is Not EnoughNonlinear boundaries, radius and polynomial features, and the cost of making a model more flexible
Overfitting, Bias–Variance & RegularizationTrain/validation gaps, underfitting, overfitting, regularization, early stopping, and the bias–variance view
How Good Is the Model?Confusion matrices, precision, recall, F1, thresholds, ROC, AUC, calibration, and subgroup evaluation
Naive Bayes & Gaussian Discriminant AnalysisBayes rule, Gaussian likelihoods, the naive independence assumption, GDA, LDA, QDA, and calibration
Support Vector Machines & KernelsMargins, support vectors, hinge loss, soft margins, C, the kernel trick, RBF kernels, and scaling
Nearest Neighbours & Decision TreesEuclidean distance, kNN votes, the bias-variance of k, CART splits, Gini impurity, depth, and instability
Bagging, Random Forests & BoostingBootstrap samples, bagging, random feature selection, out-of-bag error, AdaBoost, and gradient boosting
Unsupervised Learning
Clustering, mixtures, and finding structure without labels
Clustering with k-MeansInertia, Lloyd’s algorithm, initialization, the elbow heuristic, empty clusters, and local optima
Gaussian Mixtures & EMMixture weights, Gaussian components, responsibilities, EM updates, log likelihood, and model selection
Principal Component AnalysisCentering, covariance, eigenvectors, projection, reconstruction, explained variance, and the limits of linear compression
Deep Learning
Networks, backpropagation, training tricks, and representations
Neural NetworksHidden units, activation functions, a forward pass, and why depth needs nonlinearity
BackpropagationComputational graphs, local derivatives, the backward pass, and why backprop is not the optimizer
Training Deep NetworksLearning-rate schedules, momentum, Adam, initialization, batch normalization, dropout, debugging, and validation
Convolutional Neural NetworksImage grids, kernels, receptive fields, weight sharing, padding, stride, pooling, and stacked features
Representation Learning & EmbeddingsOne-hot limits, dense vectors, cosine similarity, analogies, and static versus contextual embeddings
Transformers & LLMs
Next-token prediction, attention, and the modern language-model stack
Predicting the Next TokenContext windows, logits, softmax, cross-entropy, temperature, sampling, and what a language model is not
AttentionQueries, keys, values, scaled dot products, softmax weights, causal masks, and why weights are not explanations
The TransformerMulti-head attention, positional information, residual streams, layer normalization, blocks, and generation
From Base Model to AssistantBase models versus assistants, prompting, retrieval-augmented generation, fine-tuning, tool calls, prompt injection, and evaluation
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.

