mlpack 3.4.2
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
17namespace mlpack {
18namespace ann {
19
25{
26 public:
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
Implementation of the NoRegularizer.
void Evaluate(const MatType &, MatType &)
Calculate the gradient for regularization.
NoRegularizer()
Create the regularizer object.
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.