
Multi-Layer Forward Pass and Final Prediction
Weighing hidden layer activations in the output layer and applying Sigmoid compression to produce a single final probability prediction for the model.
In Lesson 2, our Hidden Layer evaluated the script and filtered the results through . Negative scores were set to , while positive scores passed forward unchanged.
That leaves us with three intermediate scores for Commercial Hit, Oscar Potential, and International Appeal:

Now we enter Layer 2 (the Output Layer). Its job is to take those three intermediate scores, weigh their relative importance, apply a bias, and produce a single prediction () for Greenlight vs. Reject.
The Output Layer's Weights and Bias
Notice how the roles of our neurons split across the layers:
- The Hidden Layer (3 Neurons): Scores the three intermediate factors (
[Hit, Oscar, International]). - The Output Layer (1 Neuron): Answers the studio's final question: "Should we greenlight this movie?"
Because Layer 2 has 1 neuron evaluating the 3 scores from Layer 1, its weight matrix is simply a single row of three weights—one weight for each hidden neuron.
Whereas Layer 1's weights represented what the studio believed about genre preferences, Layer 2's weights represent how much the studio believes each intermediate score contributes to a movie's overall success:
All three weights are positive because the studio believes all three factors contribute to a successful film: domestic commercial appeal carries the largest share (), awards prestige adds strong value (), and international box office adds secondary value ().
Producing and marketing a studio movie costs tens of millions of dollars. Even if a script scores well on one factor, the studio does not greenlight projects by default—the weighted sum of those scores must clear an investment hurdle before the studio commits production capital. A bias of builds that hurdle into the neuron:
With and in place, Layer 2 combines the three hidden activations into a single linear score ():
Output Layer Activation
The linear step gives us a single raw number. To complete Layer 2 and produce the final prediction (), we need an activation function.
In Lesson 2, we replaced Sigmoid with inside the hidden layer so positive scores wouldn't get squashed against a ceiling. Should the Output Layer use as well—or switch back to Sigmoid ()?
The answer comes down to the different jobs of the two layers—Scoring Intermediate Factors vs. Answering the Final Question:
- Hidden Layers Score Intermediate Factors (): Hidden neurons are internal stepping stones whose audience is the next layer of the neural network. We use to keep the unmodified linear scores intact for active neurons while setting negative scores to zero.
- The Output Layer Answers the Question (): The Output Layer is the end of the line, where the network answers the final question for a human. We apply Sigmoid () to convert its linear score () into a final probability ():
To turn this final probability into an actionable studio verdict, we apply our standard decision threshold:
- If (which occurs whenever ): Greenlight
- If (which occurs whenever ): Reject
NOTE: Does Every Output Layer Use 1 Neuron and Sigmoid?
The Output Layer's width and activation function are chosen purely to match the format of the final answer.
We use 1 neuron with Sigmoid here because our studio wants a single binary probability (Greenlight vs. Reject), whereas other tasks—like predicting a continuous number (box office revenue) or choosing between many options (an LLM predicting the next word)—use different output widths and activations.
Computing the Final Prediction for Both Scripts
Now we feed each script's hidden activation vector () from Lesson 2 into the Output Layer to compute the linear score () and the final prediction ():
🎬 'Die Hard in Space'
- Final Prediction: 🟢 Greenlight
- Why it was greenlit: Because set the negative Oscar score to in Layer 1, its weight adds nothing () instead of dragging the movie down—allowing Hit () and International () to easily overcome the bias.
🎬 'The Notebook 2'
- Final Prediction: 🔴 Reject
- Why it was rejected: With Hit and International both set to , the script's modest Oscar score () cannot overcome the bias on its own—leaving the final score negative () and well below the threshold.
Comparing the Final Predictions
| Script | Inputs (a(1)) | Raw Score (W(2)a(1)) | Bias (b(2)) | Linear Score (z(2)) | Activation (ŷ = σ(z(2))) | Verdict (Threshold 0.50) |
|---|---|---|---|---|---|---|
| 'Die Hard in Space' | [7.5, 0.0, 10.0] | +5.75 | −3.0 | +2.75 | 0.940 (94.0%) | 🟢 Greenlight |
| 'The Notebook 2' | [0.0, 0.5, 0.0] | +0.15 | −3.0 | −2.85 | 0.055 (5.5%) | 🔴 Reject |
By chaining our Hidden Layer into a Sigmoid Output Layer, we solved the first limitation from Topic 3: our network no longer stops at three separate scores. It weighs the active hidden neurons against one another and combines them into a single final prediction ():

Across the two layers, the data flows from a 4-dimensional script vector (), narrows into 3 hidden activations (), and finishes as a single probability () that answers the studio's greenlight question.