12 #ifndef MLPACK_METHODS_ANN_ORTHOGONAL_REGULARIZER_HPP 13 #define MLPACK_METHODS_ANN_ORTHOGONAL_REGULARIZER_HPP 55 template<
typename MatType>
56 void Evaluate(
const MatType& weight, MatType& gradient);
59 template<
typename Archive>
60 void serialize(Archive& ar,
const uint32_t );
Implementation of the OrthogonalRegularizer.
Definition: orthogonal_regularizer.hpp:38
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.
double factor
The constant for the regularization.
Definition: orthogonal_regularizer.hpp:63
OrthogonalRegularizer(double factor=1.0)
Create the regularizer object.
Definition: orthogonal_regularizer_impl.hpp:21
void serialize(Archive &ar, const uint32_t)
Serialize the regularizer (nothing to do).
Definition: orthogonal_regularizer_impl.hpp:57
void Evaluate(const MatType &weight, MatType &gradient)
Calculate the gradient for regularization.
Definition: orthogonal_regularizer_impl.hpp:28