NumPy Multiple Linear Regression GD

How it was built

Part 1: Data Preprocessing

Shuffle and split multi-feature arrays, compute standardization stats, scale features, and build design matrices with a bias column.

Part 2: Prediction, Loss, and Gradients

Implement linear prediction, MSE loss, its analytic gradient, and the closed-form normal-equation solver.

Part 3: Batch Gradient Descent Training

Initialize weights, take GD steps, track train/val loss, and stop early when validation loss stalls.

Part 4: Evaluation Metrics

Compute MAE, RMSE, and R-squared, plus helpers to package metrics and learning-curve series.

Part 5: Reusable Model API

Assemble a fit/predict/score model dict that standardizes inputs, trains with GD, stores the normal-equation weights, and compares the two solutions.