Input space
Data
Network
Handles — whole-boundary moves
Drag a knob left/right; it springs back. Rotations re-write the first-layer
weights, sharpen scales the output layer (confidence), grow
rescales the boundary itself.
Training
0.02
loss
—
accuracy
—
Overlays
How to poke it
Boundary view (2-D): scroll = zoom, drag = pan,
drag the faint outer ring = rotate the boundary. Each layer-1 neuron is a
line: drag the line to shift it (bias), drag its arrow tip to rotate/scale
its weight vector.
3-D: drag = orbit the box, scroll = zoom. The surface is where the net's output crosses 0.5.
DAG: drag an edge ↑↓ = change that weight; drag a node ↑↓ = its bias; click a node to see that neuron's activation as the heatmap (Esc to go back). Use the + / − buttons to add neurons, and the small + pills between columns to insert layers.
Matrices: drag a cell ↑↓ (hold Shift for fine steps), double-click to type a value.
3-D: drag = orbit the box, scroll = zoom. The surface is where the net's output crosses 0.5.
DAG: drag an edge ↑↓ = change that weight; drag a node ↑↓ = its bias; click a node to see that neuron's activation as the heatmap (Esc to go back). Use the + / − buttons to add neurons, and the small + pills between columns to insert layers.
Matrices: drag a cell ↑↓ (hold Shift for fine steps), double-click to type a value.
Why can all of this share one plot?
Neuron heatmaps. The plot's canvas is the input space:
every pixel is an input point (x, y). The network's output assigns one number to each such
point — but so does every hidden neuron: push the point through the earlier layers and read
off that neuron's pre-activation. So each neuron defines its own scalar function
over the same input plane, and clicking a node in the graph just swaps which of these
functions the heatmap shows. The output ŷ is simply the last one in the chain.
Layer-1 lines. A first-layer neuron reads the raw input, so its pre-activation is a linear function of the plot's coordinates: z = w₁x + w₂y + b. The set of points where z = 0 is a straight line living in the same plane, and the weight vector w is its perpendicular — that's the arrow. Changing the weights rotates/stretches w (and the line with it); changing the bias slides the line sideways. With ReLU, each line is exactly where its neuron switches on, which is where the kinks of the final piecewise boundary come from. Deeper neurons receive inputs already bent by activations, so their zero-sets curve — that's why only layer 1 gets straight lines (in 3-D they'd be flat planes, same argument).
Layer-1 lines. A first-layer neuron reads the raw input, so its pre-activation is a linear function of the plot's coordinates: z = w₁x + w₂y + b. The set of points where z = 0 is a straight line living in the same plane, and the weight vector w is its perpendicular — that's the arrow. Changing the weights rotates/stretches w (and the line with it); changing the bias slides the line sideways. With ReLU, each line is exactly where its neuron switches on, which is where the kinks of the final piecewise boundary come from. Deeper neurons receive inputs already bent by activations, so their zero-sets curve — that's why only layer 1 gets straight lines (in 3-D they'd be flat planes, same argument).
viewing neuron — click to show output ✕