This project demonstrates a minimal linear regression trained with gradient descent using two intuitive features from the Ames Housing dataset: GrLivArea (living area) and OverallQual (overall quality).
We minimize the Mean Squared Error (MSE) evaluate performance with the Root Mean Squared Error (RMSE) and visualize the fitted regression plane along with the training dynamics over epochs.
Linear model
Standardization
Loss functions
Gradients
Gradient descent update
Early stopping criterion
- Model: Linear regression with standardized features
- Loss: MSE and RMSE (root mean squared error)
- Optimizer: Gradient descent with early stopping
- Visualization: Interactive Plotly plots + 3D GIF of the regression plane on Matplotlib
- Install dependencies:
pip install -r requirements.txt
- Run the notebook:
jupyter lab notebooks/main.ipynb
- Outputs (GIF, figures) will appear in the
assets/folder.
- Gradient descent
- Final RMSE: ~42,000($)
- 3D visualization of the regression plane:

