Back to Neural Networks Training and Debugging
Step 3 of 6· Investigate: Stable arithmetic
Neural Networks Training and Debugging · Lesson 3 of 3 in this module
Investigate: Stable arithmetic
Add offsets of 1000 and −1000. Compare naive exponentials with max-shifted probabilities.
Loading this browser experiment…
More things to try · optional
- Use large score gaps and target C. Compare negative log probability with direct shifted loss, then inspect the represented inputs at the huge offset.
- Check the correct derivative, the missing-target fault and the reversed-sign fault using the same inputs, finite-difference step and tolerance.
- Compare large, moderate and tiny perturbations. Retain failures and inconclusive checks, and explain the actual error bound rather than only the pass label.
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…
Your prediction, observation and next question
Prerequisites and related ideas
Key terms: Gradient