Robot Learning · Supervised Learning for Robots · M2-L1 · Beginner
Fit Steering with Gradient Descent
Experiment log · Scout at Meridian General Hospital
Experiment log, Meridian General Hospital, 09:40. Scout follows the long ward corridor, and the team has two hours of logs: heading error, lateral offset, speed and range to the next waypoint, together with the steering command the old controller issued. The new steering model is supposed to be a plain linear fit trained by gradient descent. The first attempt printed nan on the third epoch.
You will rebuild the training code in three steps and test each one before trusting the next: the loss and its gradient, the scaling of the features, and the descent loop itself. The orange curve in the last stage is the original failure, reproduced.
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.