Everyone's AI
Machine learningPlayground

Playground

Hands-on AI lab

Deep Learning

  • NN Classifier
  • Loss Landscape Lab

Machine Learning

  • KNN Neighbor Classifier

Reinforcement Learning

  • RL Agent

Computer Vision

  • Conv Vision

Transformer

  • Attention Playground
NN ClassifierLoss Landscape LabKNN Neighbor ClassifierRL AgentConv VisionAttention Playground
Loading...

Playground

Loss Landscape Lab

Compare how SGD, Momentum, and Adam find the minimum from the same starting point on a 2D loss surface!

Step0
Control help

▶ Play moves all three optimizers one step at a time. Crank up the learning rate to see SGD oscillate first.

  • Learning rate η: How far to move each step. Too large diverges; too small is slow.
  • Momentum β: Fraction of previous gradient kept for Momentum.

Loss terrain

Which surface should we optimize on?

Related lessons

Related lessons

Gradient in deep learningOptimization: Momentum and Adaptive Learning RateLearning Rate Scheduling: Slow Down When Needed

Optimization paths

Purple=SGD · Blue=Momentum · Orange=Adam · click canvas to move start

StartMinimumSGDMomentumAdam

Click the canvas to change the start and reset paths

SGD · Running

5.3651

Momentum · Running

5.3651

Adam · Running

5.3651

Related lessons

  • Gradient in deep learning
  • Optimization: Momentum and Adaptive Learning Rate
  • Learning Rate Scheduling: Slow Down When Needed