The ball always moves against the gradient (−∇f): the gradient points UPHILL, so subtracting it goes DOWN. Each step: x ← x − η∇f. Too large an η → blow-up/oscillation; too small → slow crawl. With many basins → the ball can get stuck in a local minimum.
—
Click the map to drop the ball there · drag Learning rate η to see slow crawl ↔ blow-up · switch the Scenario (single basin · many basins · big step · small step · narrow valley · momentum)
Your browser has canvas disabled.
Loss f & steepness |∇f| by iterationloss f|∇f| steepness