Neural Trainer

A 2→8→8→1 network with hand-written backprop and zero libraries, running right now in your browser.

Under every framework the same thing happens: a pile of random numbers becomes a decision-maker through nothing but repeated nudges. This page removes the framework so you can watch it happen. The network below has two inputs (the x and y of each dot), two hidden layers of eight tanh neurons, and one sigmoid output that says "purple or green". The colored background is the network's current opinion about every point on the plane, and at step zero that opinion is noise.

Press train. The loss curve falls and the boundary stops being a blur. On the spiral dataset, look for the stretch where the network visibly struggles before it figures out that the world is curved; I find that part more honest than the clean ending. Crank the learning rate too high and watch the boundary thrash instead of settle, which is the same failure you'd debug in production, just at a scale where you can see it.

epoch 0 · loss —

The same mechanics run every model I've shipped, just with more zeros in the parameter count. If you want the production-scale version of this story, start with One Encoder, Three Jobs →