Implementation of the OrthogonalRegularizer. More...
Public Member Functions | |
OrthogonalRegularizer (double factor=1.0) | |
Create the regularizer object. More... | |
template | |
void | Evaluate (const MatType &weight, MatType &gradient) |
Calculate the gradient for regularization. More... | |
template | |
void | serialize (Archive &ar, const unsigned int) |
Serialize the regularizer (nothing to do). More... | |
Public Attributes | |
double | factor |
The constant for the regularization. More... | |
Implementation of the OrthogonalRegularizer.
Orthogonality of weights is a desirable property because multiplication by an orthogonal matrix leaves the norm of the matrix unchanged. The orthogonal regularization technique encourages weights to be orthogonal.
For more information, see the following.
Definition at line 38 of file orthogonal_regularizer.hpp.
OrthogonalRegularizer | ( | double | factor = 1.0 | ) |
Create the regularizer object.
factor | The factor for regularization. |
void Evaluate | ( | const MatType & | weight, |
MatType & | gradient | ||
) |
Calculate the gradient for regularization.
MatType | Type of weight matrix. |
weight | The weight matrix to be regularized. |
gradient | The calculated gradient. |
void serialize | ( | Archive & | ar, |
const unsigned | int | ||
) |
Serialize the regularizer (nothing to do).
double factor |
The constant for the regularization.
Definition at line 63 of file orthogonal_regularizer.hpp.