mlpack
3.1.1
src
mlpack
methods
ann
regularizer
orthogonal_regularizer.hpp
Go to the documentation of this file.
1
12
#ifndef MLPACK_METHODS_ANN_ORTHOGONAL_REGULARIZER_HPP
13
#define MLPACK_METHODS_ANN_ORTHOGONAL_REGULARIZER_HPP
14
15
#include <
mlpack/prereqs.hpp
>
16
17
namespace
mlpack
{
18
namespace
ann {
19
38
class
OrthogonalRegularizer
39
{
40
public
:
46
OrthogonalRegularizer
(
double
factor
= 1.0);
47
55
template
<
typename
MatType>
56
void
Evaluate
(
const
MatType& weight, MatType& gradient);
57
59
template
<
typename
Archive>
60
void
serialize
(Archive& ar,
const
unsigned
int
/* version */
);
61
63
double
factor
;
64
};
65
66
}
// namespace ann
67
}
// namespace mlpack
68
69
// Include implementation.
70
#include "orthogonal_regularizer_impl.hpp"
71
72
#endif
prereqs.hpp
mlpack::ann::OrthogonalRegularizer
Implementation of the OrthogonalRegularizer.
Definition:
orthogonal_regularizer.hpp:38
mlpack
@serialization.hpp
Definition:
add_to_po.hpp:21
mlpack::ann::OrthogonalRegularizer::serialize
void serialize(Archive &ar, const unsigned int)
Serialize the regularizer (nothing to do).
mlpack::ann::OrthogonalRegularizer::Evaluate
void Evaluate(const MatType &weight, MatType &gradient)
Calculate the gradient for regularization.
mlpack::ann::OrthogonalRegularizer::OrthogonalRegularizer
OrthogonalRegularizer(double factor=1.0)
Create the regularizer object.
mlpack::ann::OrthogonalRegularizer::factor
double factor
The constant for the regularization.
Definition:
orthogonal_regularizer.hpp:63
Generated by
1.8.17