Robot Learning · Foundations: Policies, Data and Evaluation · M1-L1 · Beginner
Record a Rollout
Experiment log · Scout at Meridian General Hospital
Experiment log, Meridian General Hospital, 14:05. Scout has driven the pharmacy corridor all morning and written every step to one long file. The training job reads it and complains: some returns look impossible, one run seems to have no ending, and a nurse swears Scout was never paid for reaching the goal.
Before anyone trains on this file, you will cut it into episodes, compute the return the robot actually earned from each step, and audit the logged rewards against the written specification. Bad data makes a bad policy, however good the learning algorithm is.
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.