Early Stopping as Implicit Ridge: Fit, Loss Curves and the Stopping Point (2D)
The fit at the current training step against the noisy points, the truth and the validation points, with the loss curves and the stopping point beneath. The same exact gradient-descent solution as the 3D scene, compared with explicit ridge regression.
Every model that trains long enough eventually starts memorising its training set instead of learning from it — training loss keeps falling while validation loss turns back up. This simulator renders both curves as real 3D loss landscapes and runs the exact patience-and-min-delta early-stopping algorithm used by frameworks like Keras, PyTorch Lightning and XGBoost against them, epoch by epoch. Tune how much noise tolerance and patience the algorithm gets, move the overfitting onset earlier or later, and watch it catch the best checkpoint — then halt training a fixed number of epochs after the true minimum, exactly as it does in a real training run.
The fit at the current training step against the noisy points, the truth and the validation points, with the loss curves and the stopping point beneath. The same exact gradient-descent solution as the 3D scene, compared with explicit ridge regression.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install