Course / 06

Bayesian Methods in Machine Learning

Building probabilistic models from standard blocks and computing their posteriors: conjugate priors, Bayesian model selection, linear models with automatic relevance determination, EM, variational inference and Gibbs sampling, Gaussian and Dirichlet processes, and variational inference at scale.

Before you start: Probability Theory, especially Bayesian inference, the multivariate Gaussian and Markov chain Monte Carlo, and Machine Learning, especially linear models, the EM algorithm and kernels; and from Mathematics for Machine Learning, symmetric matrices and matrix calculus. Every note ends with a Code section in NumPy and SciPy. The course is the lead-in to the variational and sampling methods of the Generative Models course.

The plan of the course → · The course in one paragraph →

  1. Modelling
  2. Linear models
  3. Approximate inference
  4. Nonparametrics and topics
  5. Scalable inference
  1. 01

    Bayesian Modelling

    Probability as a degree of belief, priors that make inference exact, and choosing between models by their evidence.

    After this section: Update a conjugate prior by hand, compute a predictive distribution, and compare two models by their marginal likelihood.

    3 of 3 notes published
  2. 02

    Bayesian Linear Models

    Linear models with a posterior instead of a point estimate, and priors that switch features off.

    After this section: Derive the posterior and predictive distribution of Bayesian linear regression, explain how automatic relevance determination prunes features, and fit a classifier with the Laplace approximation.

    3 of 3 notes published
  3. 03

    Latent Variables and Approximate Inference

    When the posterior has no closed form: EM, variational inference and sampling.

    After this section: Write the evidence lower bound, derive mean-field updates for a simple model, and run a Gibbs sampler, knowing what each approximation gives up.

    3 of 3 notes published
  4. 04

    Nonparametric and Topic Models

    Models whose complexity grows with the data: Gaussian and Dirichlet processes, and topic models.

    After this section: Fit a Gaussian process and read its uncertainty, explain the Chinese restaurant process, and infer topics with LDA.

    3 of 3 notes published
  5. 05

    Scalable Inference

    Variational inference on large data and for models without conjugacy, up to deep networks.

    After this section: Turn variational inference into stochastic optimization, estimate its gradients by the score function or reparameterization, and say what Bayesian deep learning adds.

    3 of 3 notes published