neural net playground

A real 2 → 4 → 1 network (tanh hidden, sigmoid output) trained live in your browser with online backpropagation. Click the field to place data points, then watch the decision boundary, weights and loss update as it learns. No libraries — just canvas and calculus.

decision_boundary — click to add points
class A class B step 0 · acc — · points 0

controls

// click: add point of active class
// the network learns 4 random samples per frame (sgd, lr 0.06)

weights — live

loss — last 240 steps