Early Stopping: Watching a Real Model Overfit, in 2D
Interactive 2D simulator: a Chebyshev-polynomial model is actually trained by gradient descent against noisy synthetic data, epoch by epoch. Watch training and validation loss unfold from real computed error, tune patience, min-delta, model capacity and data noise, and see the exact patience-based early-stopping algorithm halt training the moment overfitting sets in.
Every model that trains long enough eventually starts memorising its training set instead of learning from it. Rather than scripting that shape, this simulator actually trains one: a Chebyshev-polynomial regressor is fit by real gradient descent against a small noisy synthetic dataset, epoch by epoch, and both the training and validation loss you see are genuine mean-squared error computed from the model's current weights. Tune model capacity and data noise to control how sharply overfitting appears, then tune patience and min-delta to see the exact patience-based early-stopping algorithm used by frameworks like Keras and PyTorch Lightning catch the best checkpoint and halt training a fixed number of epochs after the true minimum — exactly as it does in a real training run.
An interactive 2D simulator that actually trains a polynomial model by real gradient descent against noisy synthetic data, epoch by epoch. Watch genuine training and validation loss curves emerge from the model's real weights, tune patience, min-delta, model capacity and data noise, and see the exact patience-based early-stopping algorithm halt training the moment overfitting sets in, restoring the best checkpoint.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install