Neural Network Forward Pass: Live Activation Math (2D)
2D companion to the neural-network activation visual: a real 3-5-5-3 feedforward network runs an actual forward pass on every wave, with live sliders for the input vector, activation function, bias offset and propagation speed, plus a softmax output panel and a confidence trail.
The 3D version shows five layers of neurons exchanging decorative light pulses on a timer — visually pleasing, but the pulses aren't tied to any real computation. This 2D companion replaces that with an actual 3–5–5–3 feedforward network: every wave is a genuine forward pass, computed from Xavier-initialized weights, an adjustable bias offset and whichever activation function you pick (sigmoid, ReLU or tanh). Drag the three input sliders and the softmax output bars update from real matrix arithmetic, not a script; the pulse colour along each synapse even encodes the sign of that connection's actual weighted contribution, so you can watch positive and negative signals fight for the winning class in real time.
2D neural-network forward-pass lab: a 3-5-5-3 feedforward network computes z = W·a + b + bias at every layer, squashes it through a selectable sigmoid/ReLU/tanh activation, and reports softmax(z) over 3 output classes with a live confidence trail across recent passes.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install