Machine learning
Fits models by least squares, maximum likelihood and Bayesian inference and reasons about generalization with Hoeffding and VC bounds; makes decisions under uncertainty with costs, reject options and information-theoretic losses; uses conjugate priors, Gaussian conditioning and Bayesian regression with error bars; chooses model complexity by cross-validation, AIC, BIC and the evidence; builds and evaluates linear classifiers, logistic regression, generative classifiers and nearest-neighbor methods with precision, recall, ROC curves and significance tests; designs, backpropagates and trains neural networks, including convolutional, recurrent and attention-based ones, and sizes transformers and their caches; reasons with Bayesian networks and passes messages on chains; applies kernels, support vector machines and Gaussian processes; approximates posteriors by Laplace's method and variational inference; fits mixtures by EM, reduces dimension with PCA, tracks hidden Markov models and samples by MCMC; combines trees into ensembles; learns policies from rewards; and estimates the compute, memory, bandwidth and energy of running a network on hardware. Four labs build regression with cross-validation and the evidence, classifiers with ROC analysis, the core pieces of neural networks, and Viterbi, MCMC and boosting from scratch; a machine learning lab and a clustering project complete the set.
130 h · 55 pages · After A7, A11, A4
Unit 1Fitting, likelihood, decisions and information6
Unit 2Conjugate priors, Gaussians and regression5
Unit 3Generalization, inference and model selection3
Unit 4Classification and evaluation8
- Linear classification70 min
- Logistic regression65 min
- Generative classifiers70 min
- Nearest neighbors and the curse of dimensionality2 h
- Classification lab: Fisher, neighbors, ROC curves and naive BayesLab · 2 h
- Evaluating models70 min
- Anomaly detection85 min
- Problem set 4: classification and evaluationProblem set · 4 h
Unit 5Neural networks7
Unit 6Kernels, SVMs, Gaussian processes and mixtures8
- Graphical models2 h
- Kernel methods70 min
- Support vector machines70 min
- Gaussian processes70 min
- Approximate inference85 min
- Mixture models and EM70 min
- Neural network lab: stable losses, recurrent gradients, attention and AdamLab · 2 h
- Problem set 6: kernels, SVMs, Gaussian processes and mixturesProblem set · 4 h
Unit 7Sequences, attention, graphical models and approximate inference1
Unit 8PCA, sequences, sampling, ensembles and hardware9
- Principal component analysis70 min
- Random projections85 min
- Hidden Markov models70 min
- Sampling and Markov chain Monte Carlo70 min
- Decision trees and ensembles70 min
- Latent variable and sampling lab: Viterbi, Metropolis, Gibbs and boostingLab · 2 h
- Reinforcement learning2 h
- Running neural networks on hardware70 min
- Problem set 8: PCA, sequences, sampling, ensembles and hardwareProblem set · 4 h