I taught fifty cars to drive
Rookie: fifty AI cars learn any track you draw, from nothing.
Personal · 63 seconds
What the film shows
A one-minute film of Rookie, a page by Pratyush Shivam where you draw any race track with your finger and fifty AI cars learn to drive it from nothing, shot on the live page. Generation 1 is a pile-up; in this run the first clean lap comes in generation 5. Diagrams drawn from the real numbers in the code show what a car sees (seven distance sensors and its own speed), its brain (a neural network of 8 inputs, 6 hidden neurons and 2 outputs, 68 weights in all), and how each generation is ranked, crossed over and mutated. No training data and no machine-learning library: everything is written from scratch and runs on your own device.
First published on LinkedIn ↗