Back to Neural Networks Training and Debugging
Step 3 of 6· Investigate: Nonlinear layers
Neural Networks Training and Debugging · Lesson 1 of 2 in this module
Investigate: Nonlinear layers
What makes the computer follow the lamp rule?
Predict: When both switches are off, the answer should be 0. Will the computer still get that right when you turn ReLU off?
Start here: Try all four pairs of Switch A and Switch B. Leave Turn negative numbers into zero on. Compare each answer with the lamp rule.
Experiment guide
- Turn that rule off. It now lets negative numbers pass through. Try both switches off: the computer gives 2, but the rule wants 0.
- Turn the rule back on. Check all four pairs again. You can open Look inside the computer to follow the middle calculations.
What to look for: The two versions use the same multiplications and additions. The difference is whether a negative middle value is changed to zero.
Try these steps in the experiment.
Write a prediction · optional
Loading this browser experiment…
More things to try · optional
- Try all four switch pairs. Read the hidden values as well as the output.
- Turn ReLU off. Which rows of the truth table fail?
- Compare the input-space diagram with hidden space. The hidden transformation changes the arrangement of the examples.
Notes, help and related ideas
My notes and reflection
Compare with your prediction
Compare your result with your prediction. Explain a mismatch, then change one condition and try a new case.
Loading your journal…