Page5/20
Visualizing the Loss Landscape · Page 1 of 1
The 3D Error Surface
Visualizing the Loss Landscape
What is Gradient Descent Actually Doing?
Imagine you are blindfolded on a hilly landscape. Your goal is to reach the lowest point in the valley (minimum error).
- You feel the slope under your feet (calculate gradient).
- You take a step down the steepest slope (update weights).
- Repeat until the slope is flat (convergence).
Learning Rate Impact
- Too Small: Takes thousands of tiny steps (slow training).
- Too Large: Steps right over the valley, overshooting and diverging (exploding gradients).
- Just Right: Smoothly slides to the bottom.
main.py
Loading...
OUTPUT
▶Click "Run Code" to execute…