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 
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  template<typename Archive>
49  void serialize(Archive& /* ar */, const uint32_t /* version */)
50  {
51  // Nothing to do.
52  }
53 };
54 
55 } // namespace ann
56 } // namespace mlpack
57 
58 #endif
void serialize(Archive &, const uint32_t)
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
Implementation of the NoRegularizer.
void Evaluate(const MatType &, MatType &)
Calculate the gradient for regularization.
NoRegularizer()
Create the regularizer object.