Home L2 Regularization
Post
Cancel

L2 Regularization

What is L2 Regularization?

It is a way to perform Regularization.
L2 Regularization is weight decay technique which decrease more faster if the weight is bigger. Thus, as the overall weights get smaller, the learning effect improves. L2 Regularization adds the squared value of the weights to the cost function:

$Cost = \frac{1}{n} \sum_{i=1}^{n}(L(y_{i}, \hat{y_{i}}) + \frac{\lambda}{2}w^{2})$


where $L(y_{i}, \hat{y_{i}})$ : Existing cost function.

This post is licensed under CC BY 4.0 by the author.