12 #ifndef MLPACK_CORE_OPTIMIZERS_SGD_EMPTY_UPDATE_HPP 13 #define MLPACK_CORE_OPTIMIZERS_SGD_EMPTY_UPDATE_HPP 18 namespace optimization {
54 const double stepSize,
55 const arma::mat& gradient)
58 iterate -= stepSize * gradient;
Vanilla update policy for Stochastic Gradient Descent (SGD).
The core includes that mlpack expects; standard C++ includes and Armadillo.
void Initialize(const size_t, const size_t)
The Initialize method is called by SGD Optimizer method before the start of the iteration update proc...
void Update(arma::mat &iterate, const double stepSize, const arma::mat &gradient)
Update step for SGD.