Machine Learning Library
|
Exponential decreasing learn rate Template class for exponential decreasing learning rates. The learning rate is defined as initial*(final/initial)^(t/tmax).) More...
#include <CLearnRate.h>
Public Member Functions | |
CExponentialRate (Type tInitialRate=0.5, Type tFinalRate=0.01, int iMaxIterationNumber=100) | |
Type | iterate (void) |
Type | rate (int iIterationNumber) |
virtual string | className () const |
Returns the class name. More... | |
virtual bool | isA (const char *acClass) const |
Check if the object is an instance of the class with given name. More... | |
![]() | |
virtual | ~CLearnRate () |
void | setInitial (Type tVal) |
void | setFinal (Type tVal) |
void | setIterations (int iVal) |
void | reset () |
void | setIteration (int iVal) |
Type | getInitial () |
Type | getFinal () |
Type | getRate () |
int | getIterations () |
int | getIteration () |
virtual bool | serialize (fstream &stream, IO_MODE mode=READ) |
Read/write from binary stream. More... | |
![]() | |
CObject () | |
Constructor. More... | |
virtual | ~CObject () |
Destructor. More... | |
virtual bool | serialize2 (CArchiv &tArchiv) |
void | setVerbose (VERBOSE_LEVEL tVerbose) |
Set the verbose level. More... | |
VERBOSE_LEVEL | verbose (void) const |
Return current verbose level. More... | |
DATATYPE | dataType () const |
Returns the template data type. More... | |
Additional Inherited Members | |
![]() | |
Type | tInitial |
Type | tFinal |
Type | tRate |
Type | tDecay |
int | iMaxIteration |
int | iIteration |
![]() | |
unsigned char | ucVerbose |
Exponential decreasing learn rate Template class for exponential decreasing learning rates. The learning rate is defined as initial*(final/initial)^(t/tmax).)
CExponentialRate< Type >::CExponentialRate | ( | Type | tInitialRate = 0.5 , |
Type | tFinalRate = 0.01 , |
||
int | iMaxIterationNumber = 100 |
||
) |
Constructor for an exponential learning rate object.
tInitialRate | Defines the initial learning rate |
tFinalRate | Defines the final learning rate |
iMaxIterationNumber | Defines the maximum number of iterations |
|
inlinevirtual |
Returns the class name.
Reimplemented from CLearnRate< Type >.
Referenced by CExponentialRate< Type >::isA().
|
inlinevirtual |
Check if the object is an instance of the class with given name.
Reimplemented from CLearnRate< Type >.
References CExponentialRate< Type >::className(), and CLearnRate< Type >::isA().
|
virtual |
Gets the learning rate for the next iteration.
Reimplemented from CLearnRate< Type >.
|
virtual |
Gets the learning rate for iteration iIteration.
iIteration | Defines the iteration number. |
Reimplemented from CLearnRate< Type >.