Robot Learning · Imitation Learning · M3-L1 · Intermediate
Clone the Expert
Experiment log · Scout at Meridian General Hospital
Experiment log, Meridian General Hospital, 09:40. The night-shift operators have driven Scout across the hall to the pharmacy goal dozens of times, steering round the pillar, and every run was logged. Two of those runs ended against the pillar and one was stopped halfway. The team wants to know whether those recordings alone are enough to teach a policy to do the job without an operator.
You will turn the logs into a training set, build the simplest policy that imitates them (look at the closest situations in the data and copy what the expert did), and then run the whole thing as an experiment. The question that matters is not whether the clone repeats the demonstrations, but whether it copes with a start nobody drove from.
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.