Differential Calculus
Letting h go to zero…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Differential Calculus
Letting h go to zero…
The algorithm that trains neural networks: feel the slope, step downhill, repeat. The learning rate decides whether that walk crawls, converges, zigzags or blows up.
Loss surface: loss = 0.1x² + 0.4y²
The same walk on the contour map
Loss after each step
A loss surface: low is good. Training a model means walking downhill on it. Gradient descent looks at the slope where it stands, ∇loss, and takes a step the other way, scaled by the learning rate η. The ball starts at (−2.6, 1.5), loss 1.576.