Go to the documentation of this file.
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>
70 #include "orthogonal_regularizer_impl.hpp"
The core includes that mlpack expects; standard C++ includes and Armadillo.
Implementation of the OrthogonalRegularizer.
Linear algebra utility functions, generally performed on matrices or vectors.
void serialize(Archive &ar, const unsigned int)
Serialize the regularizer (nothing to do).
void Evaluate(const MatType &weight, MatType &gradient)
Calculate the gradient for regularization.
OrthogonalRegularizer(double factor=1.0)
Create the regularizer object.
double factor
The constant for the regularization.