CVFunctionResidualLearner Class Reference
#include
<cvfunctionlearner.h>
Inheritance diagram for CVFunctionResidualLearner:
List of all
members.
|
Public Member Functions
|
|
|
CVFunctionResidualLearner
(CRewardFunction
*rewardFunction, CGradientVFunction
*vfunction, CResidualFunction
*residual,
CResidualGradientFunction
*residualGradient,
CAbstractBetaCalculator
*betaCalc)
|
|
|
~CVFunctionResidualLearner
()
|
|
virtual void
|
updateVFunction
(CStateCollection *oldState,
CStateCollection *newState,
int duration, double td)
|
| |
Updates the V-Function, calls the update
V-Function method of the etrace object.
|
|
virtual void
|
newEpisode
()
|
| |
Resets the etraces.
|
|
CGradientVETraces
*
|
getResidualETraces
()
|
Protected Member Functions
|
|
virtual void
|
addETraces
(CStateCollection *oldState,
CStateCollection *newState,
int duration, double td)
|
Protected Attributes
|
|
CGradientVETraces
*
|
residualGradientTraces |
|
CGradientVETraces
*
|
directGradientTraces |
|
CGradientVETraces
*
|
residualETraces |
|
CAbstractBetaCalculator
*
|
betaCalculator |
Constructor & Destructor Documentation
|
CVFunctionResidualLearner::~CVFunctionResidualLearner
|
( |
|
) |
|
|
Member Function Documentation
| virtual void
CVFunctionResidualLearner::newEpisode
|
( |
|
) |
[virtual] |
|
| |
Updates the V-Function, calls the update V-Function method of
the etrace object.
First the etraces gets multiplied by the attentuation factor
(lambda * gamma)^duration, then the etrace of the current step gets
added, and than the V-Function is updated by the update function of
the etrace object. The update factor is td * learningrate.
Reimplemented from CVFunctionLearner.
|
Member Data Documentation
The documentation for this class was generated from the following
file:
|