Gradient Descent Simulator
Optimise a linear regression model on a visible loss surface and compare batch, stochastic and mini-batch gradient updates.
What to observe while you experiment
Gradient descent updates parameters in the direction that locally reduces a loss. Learning rate controls step size; batch, stochastic and mini-batch variants differ in how much data estimates each gradient, changing noise and convergence behaviour.
Experiment deliberately
Start with a small learning rate, predict the next parameter movement, then raise the rate until overshoot appears. Compare batch and stochastic paths.
Try the learning-rate extremes. A tiny rate moves slowly; a useful rate converges; an excessive rate can overshoot or diverge.
Ready at the initial parameters.
Loss surface
Each point on the surface is the MSE for one intercept/slope pair. The path shows optimisation history.