The L_p regularizer for arbitrary integer p.
More...
|
| | LRegularizer (double factor=1.0) |
| | Create the regularizer object. More...
|
| |
| template<typename MatType > |
| void | Evaluate (const MatType &weight, MatType &gradient) |
| | Calculate the gradient for regularization. More...
|
| |
| template<typename Archive > |
| 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<int TPower>
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.
Create the regularizer object.
- Parameters
-
| factor | The factor for regularization. |
| 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. |
| void serialize |
( |
Archive & |
ar, |
|
|
const unsigned |
int |
|
) |
| |
Serialize the regularizer (nothing to do).
The documentation for this class was generated from the following file: