← Back to all experiments

RegressionIntermediateLinear RegressionPolynomial Regression
EXP7: Linear vs Polynomial Regression
Compares linear and polynomial regression on housing and auto MPG data.
Key highlights
- Evaluates MSE and R2
- Visualizes predicted vs actual
- Fits polynomial curve on horsepower
Metrics
MSER2
Outputs

Predicted vs actual for Boston Housing

Degree-4 polynomial fit for MPG
Full Python Code
The complete Python script directly from the repository.
Python
Next steps
Want to explore further? Try the full gallery or open the raw script to tweak parameters.