Labs · Neural Networks
Neural Network Playground
A multilayer perceptron stacks layers of neurons with nonlinear activation functions (tanh here). With hidden layers it can learn curved decision boundaries, including XOR, which no single perceptron can solve.
Training uses backpropagation: compute the output error, send it backward through the network using the chain rule, and nudge every weight downhill (gradient descent). The background shows the network's prediction everywhere on the plane.
Try "Two spirals" with 1 hidden layer, then with 3. Left-click adds blue points, right-click adds orange.
Controls
- Dataset
- Hidden layers
- Neurons per layer
- Learning rate
- Epochs per frame
- Show network diagram
Evolved into Gradient Descent Optimizers, Overfitting & Regularization.