Repository navigation
Forward Pass
Hllinaz edited this page Jun 8, 2026
·
2 revisions
The forward pass computes the output of the network from the input values.
For each non-input neuron:
z = sum(w_i * h_i) + b
Then the activation function is applied:
h = f(z)
Where:
-
w_iis an incoming weight. -
h_iis the activation from the previous layer. -
bis the bias. -
zis the weighted sum. -
fis the activation function. -
his the output activation.
During the forward pass, the canvas can show:
- Active node.
- Current connection.
- Weight values.
- Bias values.
- Weighted term values.
- Node activation.
For a neuron with two inputs:
z = (w1 * x1) + (w2 * x2) + b
h = sigmoid(z)
The formula panel shows the current substitution as the animation advances.
The final layer produces the prediction.
For a single-output binary example:
y_hat = output activation
A simple class prediction can be computed using:
class = 1 if y_hat >= 0.5 else 0