Machine Learning Library
|
Base class for all learning rate functions Template base class for all learning rates (virtual). More...
#include <CLearnRate.h>
Public Member Functions | |
virtual Type | iterate (void) |
virtual | ~CLearnRate () |
virtual Type | rate (int iIterationNumber) |
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 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 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... | |
Protected Attributes | |
Type | tInitial |
Type | tFinal |
Type | tRate |
Type | tDecay |
int | iMaxIteration |
int | iIteration |
![]() | |
unsigned char | ucVerbose |
Base class for all learning rate functions Template base class for all learning rates (virtual).
|
inlinevirtual |
|
inlinevirtual |
Returns the class name.
Reimplemented from CObject< Type >.
Reimplemented in CExponentialRate< Type >, CLinearRate< Type >, CHarmonicRate< Type >, and CConstantRate< Type >.
Referenced by CLearnRate< Type >::isA().
|
inline |
References CLearnRate< Type >::tFinal.
|
inline |
References CLearnRate< Type >::tInitial.
|
inline |
References CLearnRate< Type >::iIteration.
|
inline |
References CLearnRate< Type >::iMaxIteration.
|
inline |
References CLearnRate< Type >::tRate.
|
inlinevirtual |
Check if the object is an instance of the class with given name.
Reimplemented from CObject< Type >.
Reimplemented in CExponentialRate< Type >, CLinearRate< Type >, CHarmonicRate< Type >, and CConstantRate< Type >.
References CLearnRate< Type >::className(), and CObject< Type >::isA().
Referenced by CConstantRate< Type >::isA(), CHarmonicRate< Type >::isA(), CLinearRate< Type >::isA(), and CExponentialRate< Type >::isA().
|
inlinevirtual |
@ Gets the learning rate for the next iteration.
Reimplemented in CExponentialRate< Type >, CLinearRate< Type >, CHarmonicRate< Type >, and CConstantRate< Type >.
|
inlinevirtual |
Gets the learning rate for a given iteration number.
Reimplemented in CExponentialRate< Type >, CLinearRate< Type >, CHarmonicRate< Type >, and CConstantRate< Type >.
|
inline |
|
virtual |
Read/write from binary stream.
The functions handles different data types e.g for reading float objects in a double instance, etc.
fstream | Reference to binary stream |
mode | Switches between reading and writing |
Reimplemented from CObject< Type >.
|
inline |
References CLearnRate< Type >::tFinal.
|
inline |
References CLearnRate< Type >::tInitial.
|
inline |
References CLearnRate< Type >::iIteration.
|
inline |
References CLearnRate< Type >::iMaxIteration.
|
protected |
|
protected |
Referenced by CLearnRate< Type >::getIterations(), and CLearnRate< Type >::setIterations().
|
protected |
|
protected |
Referenced by CLearnRate< Type >::getFinal(), and CLearnRate< Type >::setFinal().
|
protected |
Referenced by CLearnRate< Type >::getInitial(), CLearnRate< Type >::reset(), and CLearnRate< Type >::setInitial().
|
protected |
Referenced by CLearnRate< Type >::getRate(), and CLearnRate< Type >::reset().