Interactive optimiser visualisation (GitHub)
Controls
Learning rate1.0e-2
Step size per update. Too high overshoots, too low crawls.
Momentum0.90
SGD velocity decay. Higher values carry more speed through valleys.
Steps500
Total optimisation iterations to run.
x₀-1.0
Starting x coordinate on the surface.
y₀1.0
Starting y coordinate on the surface.
Animation speed5 steps/frame
How many steps to advance per animation frame.
Benchmarks
Server-side: C (ctypes) vs JAX (JIT) Adam update step.
Client-side: WASM (C compiled) vs plain JavaScript Adam.