Reinforcement Learning
Solve small decision problems, then test what learned policies do when conditions change.
Solve small decision problems, then test what learned policies do when conditions change.
Before you start. Stochastic Modelling for the first eight weeks. Deep Learning helps with the later weeks.
Use Python 3.12 for the examples. Install the dependencies with python -m pip install numpy torch. Run each week as a separate script. Try the worked example on paper first, then change one assumption in the lab and explain the result. All datasets are small or generated locally.
The 12 weeks
| Week | Lesson | What you’ll do |
|---|---|---|
| 1 | Bandits and exploration | Measure the cost of settling on the first promising option. |
| 2 | Markov decision processes | Specify a state that makes transitions predictable from the present. |
| 3 | Returns, values, and Bellman equations | Solve a policy value equation and check it with simulated returns. |
| 4 | Dynamic programming and value iteration | Compute an optimal route using known transitions. |
| 5 | Monte Carlo prediction and control | Estimate an action value using rewards from complete episodes. |
| 6 | Temporal-difference learning | Compare learning from a one-step target with learning from a complete return. |
| 7 | SARSA and Q-learning | See how a risky next action changes an on-policy update. |
| 8 | Linear value function approximation | Share information between states using a feature map. |
| 9 | Deep Q-networks | Compare replay and target networks on a small controlled environment. |
| 10 | Policy gradients and REINFORCE | Estimate a policy gradient and reduce its variance with a baseline. |
| 11 | Actor-critic and PPO | Trace a critic estimate into a clipped policy update. |
| 12 | Capstone · Test a controller under changed conditions | Compare a learned route and a heuristic across seeds, then shift the environment. |