← 🧮 Machine Learning

🧮 Training Lab

Low loss (near minimum)
High loss (steep wall)
Step: 0
Loss:
‖gradient‖:
FPS:
Drag — rotate · Scroll — zoom

🧮 Gradient Descent and Backpropagation Training Lab

A 3D loss landscape built from two weight values, where a glowing marker trains itself downhill step by step so you can watch what backpropagation's gradients and different optimizers actually do to the weights.

🔬 What It Demonstrates

The surface height is the loss for every pair of weights; the marker's exact position is (w1, loss, w2). Every step computes the true gradient of that surface — the same math backpropagation performs — and moves the marker according to the selected optimizer.

🎮 How to Use

Pick an optimizer and a loss surface, then adjust the learning rate and momentum to see their effect live. The ravine surface makes vanilla gradient descent zig-zag, while momentum and Adam glide smoothly toward the floor.

💡 Did You Know?

A learning rate that is too large can make gradient descent overshoot the minimum and diverge entirely — try pushing the learning rate slider high on the bowl surface to watch it happen.