HomeAI & Machine LearningPredictive Modeling: Regression Fit Lab

Predictive Modeling: Regression Fit Lab

Interactive regression simulator: watch gradient descent fit a polynomial surface to noisy train/test data in real time, and see how raising model complexity trades underfitting for overfitting through live train/test MSE and R² readouts.

AI & Machine Learning3DModerate60 FPS📱 Mobile-adapted
predictive-modeling ↗ Open standalone

Predictive modeling turns past observations into forecasts by fitting a mathematical relationship between predictors and an outcome, then checking whether that relationship generalizes to data it never saw during training. This simulator visualizes that whole loop: a polynomial regression surface is fit to a noisy 3D dataset by live gradient descent, with separate training and test point clouds so you can watch the classic underfitting-to-overfitting trade-off play out as model complexity, data noise and learning rate change, tracked in real time through train/test MSE and R².

⚙ Under the hood

Interactive regression simulator: watch gradient descent fit a polynomial surface to noisy train/test data in real time, and see how raising model complexity trades underfitting for overfitting through live train/test MSE and R² readouts.

Three.jsPredictive modelingRegressionGradient descentInstancedMesh

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)