Theory
LMS is an online learning (streaming) alternative to ๐ฆ Linear Regression; the closed form calculation can be extremely expensive, so LMS approximates it.
As before, we optimize the
Info
For learning rate
, LMS converges if where is the largest value of covariance matrix .
Locally Weighted Regression
If our data is non-linear, we can approximate a prediction by fitting a line to points that are nearby. However, this is a non-parametric method that requires fitting a new line for every prediction.
Specifically, we aim to find
where
Model
The model itself is the exact same as linear regression: we keep a set of weights
Training
Given training data
Then, go through each observation
- Let residual
- Update weights
Info
To derive the update step, we observe that the derivative of L2 loss is
, so a move in the gradient step with scaling gives us our update equation.
Prediction
Similar to linear regression, given input