The L_p regularizer for arbitrary integer p.
More...
|
| LRegularizer (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...
|
|
|
static const int | Power = TPower |
| The power of the regularizer. More...
|
|
template
class mlpack::ann::LRegularizer< TPower >
The L_p regularizer for arbitrary integer p.
- Template Parameters
-
Power | Power of regularizer; i.e. Power = 1 gives the L1-regularization. |
Definition at line 27 of file lregularizer.hpp.
◆ LRegularizer()
Create the regularizer object.
- Parameters
-
factor | The factor for regularization. |
◆ Evaluate()
void Evaluate |
( |
const MatType & |
weight, |
|
|
MatType & |
gradient |
|
) |
| |
Calculate the gradient for regularization.
- Template Parameters
-
MatType | Type of weight matrix. |
- Parameters
-
weight | The weight matrix to be regularized. |
gradient | The calculated gradient. |
◆ serialize()
void serialize |
( |
Archive & |
ar, |
|
|
const unsigned |
int |
|
) |
| |
Serialize the regularizer (nothing to do).
◆ factor
◆ Power
The documentation for this class was generated from the following file:
- /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.4.2/src/mlpack/methods/ann/regularizer/lregularizer.hpp