PPolySim OS
For Students · Gradient Descent

Gradient Descent for a cache

Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a cache live below — adjust the inputs and watch it respond, right in your browser.

Gradient Descent StudioLive

Controls

Watch gradient descent (with momentum) roll downhill on different loss landscapes. Too high a learning rate overshoots.

Presets

▶ Run in Python

Data Inspector

Surfaceripple
Step0/200
Optimizermomentum GD

Governing equation

Reading this result: A learning rate of 3 is well matched to the curvature here: steps are large enough to make progress yet small enough to avoid overshoot, giving a smooth, roughly quadratic descent toward the minimum.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Gradient Descent

Frequently asked questions

Is this good for students?
Yes — this version of "Gradient Descent for a cache" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.