mlpack
3.4.2
mlpack-3.4.2
src
mlpack
methods
ann
regularizer
no_regularizer.hpp
Go to the documentation of this file.
1
12
#ifndef MLPACK_METHODS_ANN_NO_REGULARIZER_HPP
13
#define MLPACK_METHODS_ANN_NO_REGULARIZER_HPP
14
15
#include <
mlpack/prereqs.hpp
>
16
17
namespace
mlpack
{
18
namespace
ann {
19
24
class
NoRegularizer
25
{
26
public
:
30
NoRegularizer
()
31
{
32
// Nothing to do here.
33
};
34
42
template
<
typename
MatType>
43
void
Evaluate
(
const
MatType&
/* weight */
, MatType&
/* gradient */
)
44
{
45
// Nothing to do here.
46
}
47
};
48
49
}
// namespace ann
50
}
// namespace mlpack
51
52
#endif
mlpack::ann::NoRegularizer::Evaluate
void Evaluate(const MatType &, MatType &)
Calculate the gradient for regularization.
Definition:
no_regularizer.hpp:43
mlpack::ann::NoRegularizer
Implementation of the NoRegularizer.
Definition:
no_regularizer.hpp:25
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
add_to_cli11.hpp:21
mlpack::ann::NoRegularizer::NoRegularizer
NoRegularizer()
Create the regularizer object.
Definition:
no_regularizer.hpp:30
Generated by
1.8.20