Definition of the SPALeRA stepize technique, which implementes a change detection mechanism with an agnostic adaptation scheme. More...
Public Member Functions | |
| SPALeRAStepsize (const double alpha=0.001, const double epsilon=1e-6, const double adaptRate=3.10e-8) | |
| Construct the SPALeRAStepsize object with the given parameters. More... | |
| double | AdaptRate () const |
| Get the agnostic learning rate update rate. More... | |
| double & | AdaptRate () |
| Modify the agnostic learning rate update rate. More... | |
| double | Alpha () const |
| Get the agnostic learning rate adaptation parameter. More... | |
| double & | Alpha () |
| Modify the agnostic learning rate adaptation parameter. More... | |
| void | Initialize (const size_t rows, const size_t cols, const double lambda) |
| The Initialize method is called by SPALeRASGD Optimizer method before the start of the iteration update process. More... | |
| bool | Update (const double stepSize, const double objective, const size_t batchSize, const size_t numFunctions, arma::mat &iterate, const arma::mat &gradient) |
| This function is called in each iteration. More... | |
Definition of the SPALeRA stepize technique, which implementes a change detection mechanism with an agnostic adaptation scheme.
For more information, please refer to:
Definition at line 38 of file spalera_stepsize.hpp.
|
inline |
Construct the SPALeRAStepsize object with the given parameters.
The defaults here are not necessarily good for the given problem, so it is suggested that the values used be tailored to the task at hand.
| alpha | Memory parameter of the agnostic learning rate adaptation. |
| epsilon | Numerical stability parameter. |
| adaptRate | Agnostic learning rate update rate. |
Definition at line 51 of file spalera_stepsize.hpp.
|
inline |
Get the agnostic learning rate update rate.
Definition at line 179 of file spalera_stepsize.hpp.
Referenced by SPALeRASGD< DecayPolicyType >::AdaptRate().
|
inline |
Modify the agnostic learning rate update rate.
Definition at line 181 of file spalera_stepsize.hpp.
|
inline |
Get the agnostic learning rate adaptation parameter.
Definition at line 174 of file spalera_stepsize.hpp.
Referenced by SPALeRASGD< DecayPolicyType >::Alpha().
|
inline |
Modify the agnostic learning rate adaptation parameter.
Definition at line 176 of file spalera_stepsize.hpp.
|
inline |
The Initialize method is called by SPALeRASGD Optimizer method before the start of the iteration update process.
| rows | Number of rows in the gradient matrix. |
| cols | Number of columns in the gradient matrix. |
| lambda | Page-Hinkley update parameter. |
Definition at line 69 of file spalera_stepsize.hpp.
|
inline |
This function is called in each iteration.
| stepSize | Step size to be used for the given iteration. |
| objective | The current function loss. |
| batchSize | Batch size to be used for the given iteration. |
| numFunctions | The number of functions. |
| iterate | Parameters that minimize the function. |
| gradient | The gradient matrix. |
Definition at line 91 of file spalera_stepsize.hpp.