L2 regularization adds a penalty to an algorithm by summing the total of all the squares of it's parameters.
L2 regularization can be formally written as
- Definitions
- controls the amount the algorithm will be penalized for larger parameters
- is the total parameters in the algorithm
- is the parameter of the algorithm