CAdaptiveParameterCalculator Class Reference
Interface for all
adaptive Parameter Calculators. More...
#include <cparameters.h>
Inheritance diagram for CAdaptiveParameterCalculator:
List of
all members.
Detailed Description
Interface for all adaptive Parameter Calculators.
For each parameter you can specify an adaptive parameter
calculator (APC), which calculates the parameter value each time it
is retrieved. Now, each time the parameter's value is requested by
"getParameter" the calculated value of the adaptive parameter
calculator is returned instead of the constant double value of the
parameter map. This is useful for example for adapting the learning
rate or the exploration of a policy. The parameter's value can
depend on any other value like the number of steps or episodes or
even the current average reward. Adaptive Parameter Calculators
also have same parameters too, all parameters of the Adaptive
Parameter Classes begin with the prefix "AP". When an adaptive
parameter calculator is set to a parameter, the parameters name is
used as prefix for the parameters of the adaptive parameter
calculator. So the parameter "APFunctionKind" gets to the parameter
"VLearningRateAPFunctionKind" if you specify a APC for the
parameter "VLearningRate". The interface
CAdaptiveParameterCalculator already includes the parameter
"APFunctionKind", the functionkind property is used to determine
which function shall be used to transform the targetvalue in the
parametervalue. The targetvalue can be the number of learning
steps, number of episodes, the current value of a V-Function or the
average reward. See the subclasses for more details. There are 6
different functionkinds implemented.
Constructor & Destructor Documentation
|
CAdaptiveParameterCalculator::CAdaptiveParameterCalculator
|
( |
CParameters *
|
targetObject,
|
|
|
string |
targetParameter,
|
|
|
int |
functionKind |
|
) |
|
|
| virtual
CAdaptiveParameterCalculator::~CAdaptiveParameterCalculator
|
( |
|
) |
[virtual] |
|
Member Function Documentation
| virtual void
CAdaptiveParameterCalculator::onParametersChanged
|
( |
|
) |
[virtual] |
|
| virtual void
CAdaptiveParameterCalculator::resetCalculator
|
( |
|
) |
[pure
virtual] |
|
| virtual void
CAdaptiveParameterCalculator::setParameterValue
|
( |
double |
value |
) |
[virtual] |
|
Member Data Documentation
| |
The function kind is stored here.
The parameter "APFunctionKind" isn't used for performance
reasons, functionKind is updated each time the "APFunctionKind"
parameter changes (in the function
onParameterChanged())
|
The documentation for this class was generated from the following
file:
|