Linear Regression
A model that predicts a numerical target as a linear combination of features.
\[
\hat y=w_1x_1+w_2x_2+\ldots+w_dx_d+b
\]
Parameters
- \(w_1,\ldots,w_d\) — the weights: how strongly each feature affects the answer;
- \(b\) — the intercept.
These are the model's parameters: training fits them.
How It Is Trained
- Compute the error — usually MSE.
- Minimize it: analytically or with gradient descent.
- To keep the model from overfitting, add regularization — L1 or L2.