Establish Data Points
Plot samples on the canvas and alternate between Class A and Class B. Keep at least one point from each class.
Construct a classification dataset, adjust model hyperparameters, and observe a neural network deduce a decision boundary in your browser.
Model
2 → H → 1
Method
Backprop
Task
Binary
Interactive Neural Network Canvas
Adjust points on the canvas. Current Map: Linear
Set capabilities, then run backpropagation to warp the canvas space.
Controls how much the decision boundary can bend.
How fast the mathematical gradient is traversed.
Stops extreme overfitting by limiting weight sizes.
This relies on a shallow multi-layer perceptron (MLP) with a structural path of 2 → 4 → 1. (x, y) coordinates map from $[-1, 1]$. The hidden layer utilizes tanh activation to warp the manifold; followed by sigmoid squashing to resolve final class probability.
Mathematical flow for every pixel on screen:
Training strictly minimizes binary cross-entropy loss iteratively:
We calculate derivatives entirely client-side via backpropagation, updating the weights constantly:
Plot samples on the canvas and alternate between Class A and Class B. Keep at least one point from each class.
Load Linear, XOR, or Rings to inspect how geometry changes the boundary the network must learn.
Adjust hidden units, learning rate, and regularisation, then run training to observe the fitted surface.
Read loss, accuracy, and weight magnitude together. The contour marks the region where the model is uncertain.
The simulator runs a single-hidden-layer perceptron. Inputs are normalized canvas coordinates, hidden units use tanh, and the output sigmoid represents the probability of Class B.
Each training step performs full-batch gradient descent against binary cross-entropy and adds L2 regularisation to discourage unnecessarily large weights.