PPolySim OS
For K-12 Students · Gradient Descent

Gradient Descent for a maze solver

Built for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework. Simulate a maze solver 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 k-12 students?
Yes — this version of "Gradient Descent for a maze solver" is framed for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.