Lab
Neural Network Playground
A small neural network, trained in your browser by backpropagation written out by hand. Change its shape, the learning rate or the data, and watch the boundary it draws.
Epoch0
Loss0.000
Accuracy0%
Click or tap the plot to add a point.
Network
Thicker lines are larger weights; dashed lines are negative.
Loss
The loss will be plotted here as it trains.
Cross-entropy per pass through the data, on a log scale.
Training
Data
No straight line separates these: the hidden layer has to bend the boundary.
Network
Hidden activation
Changing the shape starts a new, untrained network. The output is always one sigmoid unit.