Labs · Neuroevolution

Neuroevolution Ecosystem

Neuroevolution Ecosystem simulation

Neuroevolution combines the last two chapters. Each creature is steered by its own small neural network, but there is no backpropagation and no "correct answer". The weights evolve instead.

Inputs: the direction and distance to the nearest food it can sense, its energy and its speed. Outputs: turn and thrust. Moving costs energy and eating restores it. When a creature starves it is replaced by a mutated copy of a successful survivor, chosen with probability ∝ food eaten.

At first the creatures spin aimlessly. After a few minutes (faster with a higher sim speed) they learn to hunt. Watch the chart climb.

Set the speed to 10 for a minute, then back to 1 to watch the evolved behaviour.

Controls

Evolved into Neuroevolution: Self-Driving Cars, Neuroevolution: Balancing a Pole.