no_decay.hpp
Go to the documentation of this file.
1 
15 #ifndef MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_DECAY_POLICIES_NO_DECAY_HPP
16 #define MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_DECAY_POLICIES_NO_DECAY_HPP
17 
18 namespace mlpack {
19 namespace optimization {
20 
24 class NoDecay
25 {
26  public:
30  NoDecay() { }
31 
39  void Update(arma::mat& /* iterate */,
40  double& /* stepSize */,
41  const arma::mat& /* gradient */)
42  {
43  // Nothing to do here.
44  }
45 
55  void Update(const arma::mat& /* iterate */,
56  const arma::mat& /*iterate0 */,
57  const arma::mat& /* gradient */,
58  const arma::mat& /* fullGradient */,
59  const size_t /* numBatches */,
60  double& /* stepSize */)
61  {
62  // Nothing to do here.
63  }
64 };
65 
66 } // namespace optimization
67 } // namespace mlpack
68 
69 #endif // MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_DECAY_POLICIES_NO_DECAY_HPP
Definition of the NoDecay class.
Definition: no_decay.hpp:24
void Update(arma::mat &, double &, const arma::mat &)
This function is called in each iteration after the policy update.
Definition: no_decay.hpp:39
.hpp
Definition: add_to_po.hpp:21
NoDecay()
This constructor is called before the first iteration.
Definition: no_decay.hpp:30
void Update(const arma::mat &, const arma::mat &, const arma::mat &, const arma::mat &, const size_t, double &)
This function is called in each iteration after the SVRG update step.
Definition: no_decay.hpp:55