Double Descent 2D: Random-Feature Ridge Regression
A real random-features ridge regression fit live in your browser: watch the fit curve and the train/test risk plot side by side as model capacity crosses the interpolation threshold — the double-descent curve classical bias-variance theory doesn't predict.
This simulator runs a genuine random-features ridge regression in your browser — not a canned animation. On the left panel, a fixed set of noisy training points is fit by a model whose capacity (number of random Fourier features) you control; on the right panel, the actual computed train and test error are plotted against that capacity. Slide capacity up and classical statistics shows up first: error falls, then rises as the model starts to overfit. But keep going past the interpolation threshold — where the number of features equals the number of training samples — and, after a sharp spike, test error falls a second time. That non-monotonic "double descent" shape, discovered in modern over-parameterized machine learning, is why today's neural networks with vastly more weights than training examples often generalize better, not worse.
A real random-features ridge regression fit live in your browser, on two side-by-side 2D panels: watch the fit curve and the train/test risk plot as model capacity crosses the interpolation threshold, tracing the double-descent curve that classical bias-variance theory doesn't predict. Drag to pan and scroll to zoom either panel.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install