Stochastic Gradient Descent with Nesterov momentum optimizer class.
More...
#include <dnn_opt.h>
Stochastic Gradient Descent with Nesterov momentum optimizer class.
SGD with Nesterov momentum algorithm, see https://arxiv.org/pdf/1609.04747.pdf
Definition at line 271 of file dnn_opt.h.
◆ opt_SGD_nesterov()
SGD with Nesterov momentum constructor.
- Parameters
-
[in] | s | Step size - learning rate |
[in] | m | Momentum |
[in] | l | Regularisation param lambda |
[in] | a | Regularisation param alpha |
Definition at line 287 of file dnn_opt.h.
◆ ~opt_SGD_nesterov()
dnn::opt_SGD_nesterov::~opt_SGD_nesterov |
( |
| ) |
|
|
inline |
◆ apply()
Apply the optimizer to the layer parameters.
- Parameters
-
[in,out] | W,B | Learnable parameters |
[in] | Wgrad,Bgrad | Gradient of the learnable parameters |
Implements dnn::opt.
Definition at line 304 of file dnn_opt.h.
◆ get_algorithm()
std::string dnn::opt_SGD_nesterov::get_algorithm |
( |
void |
| ) |
|
|
inlinevirtual |
Get the optimizer algorithm information.
- Returns
- Algorithm information string
Reimplemented from dnn::opt.
Definition at line 341 of file dnn_opt.h.
◆ mom
arma::Cube<DNN_Dtype> dnn::opt_SGD_nesterov::v |
|
private |
◆ vB
arma::Mat<DNN_Dtype> dnn::opt_SGD_nesterov::vB |
|
private |
◆ vBp
arma::Mat<DNN_Dtype> dnn::opt_SGD_nesterov::vBp |
|
private |
◆ vp
arma::Cube<DNN_Dtype> dnn::opt_SGD_nesterov::vp |
|
private |
The documentation for this class was generated from the following file: