|
MiniDNN
|
#include <Optimizer.h>
Public Member Functions | |
| virtual void | reset () |
| virtual void | update (ConstAlignedMapVec &dvec, AlignedMapVec &vec)=0 |
The interface of optimization algorithms
Definition at line 19 of file Optimizer.h.
|
inlinevirtual |
Reset the optimizer to clear all historical information
Reimplemented in MiniDNN::RMSProp, and MiniDNN::AdaGrad.
Definition at line 32 of file Optimizer.h.
|
pure virtual |
Update the parameter vector using its gradient
It is assumed that the memory addresses of dvec and vec do not change during the training process. This is used to implement optimization algorithms that have "memories". See the AdaGrad algorithm for an example.
| dvec | The gradient of the parameter. Read-only |
| vec | On entering, the current parameter vector. On exit, the updated parameters. |
Implemented in MiniDNN::RMSProp, MiniDNN::AdaGrad, and MiniDNN::SGD.