Advanced · module A12
Reinforcement Learning
By the end: Formulate problems as MDPs and implement tabular and deep RL algorithms
- Covers
- Agents that learn by acting, from Markov decision processes to deep RL
- Contents
- 3 chapters, 12 topics
- Time
- About 3 hours
- Level
- Advanced
- Your progress
- 0 / 12
This module builds on Deep Learning with PyTorch. We suggest looking at it first, but the choice is yours.
Chapter 1 Foundations
- 1.115 min Activity
Markov Decision Processes
States, actions, rewards, returns and discounting
Interactive: a grid world
Gₜ = Σ γᵏ rₜ₊ₖ₊₁
- 1.215 min Read
Bellman Equations and Dynamic Programming
Value functions, policy iteration and value iteration
Code: value iteration
V(s) = maxₐ Σ P(s′|s,a)[r + γV(s′)]
- 1.312 minBeing written
Multi-Armed Bandits
Exploration and exploitation, UCB and Thompson sampling
Code: compare bandit strategies
Chapter 2 Model-Free Learning
- 2.112 minBeing written
Monte Carlo and Temporal-Difference Learning
Learning from complete and partial episodes
Code: TD(0)
- 2.215 min Read Activity
Q-Learning and SARSA
Off-policy and on-policy control
Code: Q-learning on a grid
Q ← Q + α[r + γ maxQ′ − Q]
- 2.320 minBeing written
Deep Q-Networks
Replay buffers, target networks and Atari
Code: DQN on a control task
- 2.420 minBeing written
Policy Gradients and Actor-Critic
REINFORCE, baselines, A2C and PPO
Code: PPO on a control task
Chapter 3 Beyond the Basics
- 3.112 minBeing written
Model-Based RL and World Models
Learning a model of the environment to plan
Reading and demo
- 3.210 minBeing written
Multi-Agent Reinforcement Learning
Self-play, cooperation and competition
Lab: self-play
- 3.310 minBeing written
Case Studies: AlphaGo to MuZero
How search and learning beat world champions
Case study
- 3.412 minBeing written
Reinforcement Learning in Robotics
Simulation to reality and domain randomisation
Lab: a robot arm in simulation
- 3.520 minBeing written
Module Review and Assessment
Coding tasks and a scored quiz
Graded project