Robot Learning · Offline and Data-Efficient Learning · M8-L3 · Intermediate
Compare Online and Offline Policies
Experiment log · Scout at Meridian General Hospital
Experiment log, Meridian General Hospital, central ward. The team has a month of Scout logs and a rule: no more test drives on the real ward until the new policy has been checked. Someone has trained a Q-learner on the log and it looks fine on the training curve. Deployed in the simulator, it stands still at the start cell and presses against the wall.
You will write the offline learner yourself, in a naive version and a version that refuses to trust actions the log never showed, add a penalty for rarely seen pairs, and then run all of them against an online learner that had the same number of transitions but was allowed to drive. The question is not which is best in general; it is what each one does in the cells where the data run out.
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.