Machine learning

Machine learning#

These chapters cover the standard methods of machine learning. Classification and evaluation come first: the models that predict labels, then the losses, metrics and cross-validation used to judge them. Unsupervised learning covers clustering, dimensionality reduction and deep generative models; the short kernels chapter connects SVMs to spectral clustering.

Deep learning gives the shared machinery of neural networks, and the computer vision and NLP chapters apply it to images and text, alongside the classical methods that came before. Learning theory closes the part with the question behind all of it: how many examples a learner needs to generalize.

The chapters of this part, linked by shared vocabulary. Faded dots are the closest chapters in other parts.
Classification

Linear classifiers as regularizer plus loss, SVMs, trees and forests, naive Bayes and Gaussian classifiers, nearest neighbors, and boosting.

9 min · 3 interactive

Classification
Evaluation

Losses and risk, precision, recall and ROC curves, cross-validation, and resampling for stability.

2 min · 2 interactive

Evaluation
Unsupervised

Clustering, dimensionality reduction, deep generative models (VAEs, GANs, diffusion, flows), and self-supervised and contrastive learning.

15 min · 2 interactive

Unsupervised
Kernels

Valid kernels and their RKHS, and how the eigenvectors of a kernel matrix reveal clusters.

1 min · 2 interactive

Kernels
Deep learning

Backpropagation, the main architectures (CNNs, RNNs, GNNs), normalization layers, and training tricks.

9 min · 2 interactive

Deep learning
Computer vision

How images form, how to filter them and find features, stereo and motion, human vision, and deep networks for vision.

20 min · 2 interactive

Computer vision
NLP

NLP tasks and benchmarks, tokenization, word embeddings, n-gram language models, and parse trees.

9 min · 2 interactive

NLP
Learning theory

How many examples a learner needs, from PAC bounds and VC dimension to version spaces.

3 min · 2 interactive

Learning theory