The Archery Metaphor
A neural network's forward pass is like shooting an arrow. Data enters the input layer, flows through hidden layers, lands as a prediction. The bullseye is the correct answer. The arrow usually misses on the first shot — by exactly the amount we call loss.
The loss function is your ruler for "how badly did you miss?" For regression: mean squared error. For classification: cross-entropy. We met both in the Learning from Data track.
What's Actually Happening
Each layer applies a transformation: . Multiply by a weight matrix, add a bias, pass through a non-linearity. Stack many of these and you get a deep network.
- Input becomes after layer 1.
- becomes after layer 2.
- ...
- The final is your prediction .
- Compare to true with the loss function.
That's the forward pass. Pure forward computation, no learning yet.
Forward pass = compute the prediction. Loss = how wrong it is. The backward pass (next lesson) is what makes the learning happen.