Labs / Foundations
Q-learning on a grid world
Step an agent through a small grid world, watch the Q-table and greedy policy update, and tune learning rate, discount, and exploration.
Theory and worked examples: Q-learning and SARSA
Q-learning on a cliff grid
A synthetic 5×5 world: −1 per move, −100 for a pit. Watch the Q-table fill in, one temporal-difference update at a time.
best action (greedy policy)greedy pathagent
20-episode meanone episode (clipped at −120)
Q-learning: press Step to see one update written out.