Regularized Linear Regression
\(\theta_j := \theta_j(1 - \alpha\frac{\lambda}{m}) - \alpha\frac{1}{m}\sum_{i=1}^m(h_\theta(x^{(i)}) - y^{(i)})x_j^{(i)}\)
The term \((1 - \alpha\frac{\lambda}{m})\) will always be less than 1. It is there to reduce the value of \(\lambda_j\) by some small amount on every update. The 2nd term is exactly the same as it was before
Resources:
- https://www.coursera.org/learn/machine-learning/lecture/QrMXd/regularized-linear-regression
Comments
Post a Comment