Perceive
8 inputs
A small neural network agent that learns to reach a goal and avoid an obstacle in a grid world, using trial and reward.
An experiment in understanding AI at the mechanism level.
To see how an AI agent perceives, decides and learns at the mechanism level, without a black box. The neural network is written from scratch in plain JavaScript, without an ML library.
The stages light up in sequence alongside a small grid world. This is an illustrative workflow, not a live training run or a demonstration of measured performance.
Illustrative movement only; the path does not show learned behaviour.
8 inputs
12 hidden neurons
4 action probabilities
Take an action in the grid world
+1 for the goal; −1 for the obstacle
Nudge 160 weights
React for the interface, a neural network written in plain JavaScript without an ML library, and SVG for visualisation.