Neural Network Builder
Add layers, tune neurons, change activation functions — then watch forward propagation light up your network with real computed values at every node!
How Neural Networks Work
Neurons
Each neuron receives inputs, multiplies by weights, adds a bias, then passes through an activation function.
Connections
Every neuron in one layer connects to every neuron in the next layer. Each connection has a learnable weight.
Forward Pass
Data flows left to right through the network, transforming at each layer, until it reaches the output.
Backpropagation
Error flows backwards from output to input, adjusting weights to reduce mistakes. Repeat thousands of times!
Step 1 — Design Your Architecture
2 → 3 → 1Step 2 — Forward Propagation
🎚️ Set Input Values
📊 Layer Outputs
Step 3 — Activation Functions Explorer
Step 4 — Watch the Network Learn XOR
📉 Loss over Epochs
Deep Learning Badge!
You built a neural network and watched it learn through backpropagation!
Optional. Stays on this device only — not sent to WhizzStep.
Key Concepts Mastered
⚖️ The Learnable Params
Each connection has a weight; each neuron has a bias. Training adjusts all of these to minimise the error.
🔌 Non-Linearity
ReLU, Sigmoid, Tanh — without these, a 1000-layer network is mathematically the same as 1 linear layer.
➡️ Input to Output
Data multiplied by weights, summed, activated — repeated layer by layer until the output neuron.
📏 Measuring Error
Mean Squared Error (MSE) quantifies how wrong the output is. Training minimises this number.
🔄 Learning Rule
Using the chain rule of calculus to compute how much each weight contributed to the error, then adjusting it.
⛰️ Finding the Valley
Take small steps in the direction of steepest descent on the loss surface. Learning rate controls the step size.
About this lab
Learning objective: Assemble a small neural network by hand and watch it adjust its weights as it learns a simple pattern.
What this simplifies: A tiny network with a handful of neurons is used; production neural networks have millions to billions of parameters.
Privacy: No learner input leaves the device.
Teacher prompt: Ask the class why this simulation might mislead someone who takes it too literally.
Reflect: What is one thing this activity showed you that you did not expect?
← Back to all Labs