Robot Learning · Reinforcement Learning Foundations · M4-L2 · Intermediate
Implement Q-Learning
Experiment log · Scout at Meridian General Hospital
Experiment log, Meridian General Hospital, west wing. The facilities team has rearranged the ward again and nobody has the new map. Scout can still move and sense which cell it is in, but it does not know where the walls are, which cells are slippery, or where the stairwell edge sits. All it gets back from a move is the next cell and a reward.
You will build the learner that works this out by trial and error: a rule for when to try something new, an update that moves one estimate toward what just happened, and a loop that runs it for a few hundred episodes. The simulator then follows the route your table recommends and scores it against the best possible route, which it computes with full knowledge of the ward.
Your task
Lab complete: post-mortem
You have passed every stage. Now connect it back to the theory and move on:
Output
What Python can I use?
Plain Python with math and heapq. Your code runs in a background worker: an endless loop is stopped after a few seconds and the page stays usable. It runs in your browser and is never sent anywhere.