Scheduler
|
#include <naiveQLambda.h>
Public Member Functions | |
NaiveQLambda (std::shared_ptr< Context > c, TabularActionValues *av) | |
virtual void | updateActionValues (state_t previousState, state_t nextState, action_t previousAction, double reward) |
![]() | |
EligibilityTraceAlgo (std::shared_ptr< Context > c, TabularActionValues *av) | |
virtual void | init () |
virtual void | end () |
![]() | |
RlBackupAlgorithm (std::shared_ptr< Context > c, ActionValuesFunction *av) | |
virtual | ~RlBackupAlgorithm () |
virtual double | getMaxQ (state_t state) |
virtual std::pair< action_t, double > | getBestActionAndQ (state_t state) |
virtual action_t | getBestAction (state_t state) |
virtual void | updateBestActionAndQ (state_t state) |
virtual void | notifyUpdateNeeded () |
Static Public Attributes | |
static constexpr const char * | configKey = "naiveQLambda" |
Additional Inherited Members | |
![]() | |
void | updateState (state_t previousState, action_t previousAction, double reward) |
![]() | |
virtual void | initAlpha () |
virtual void | updateAlpha () |
virtual void | updateIfNeeded (state_t state) |
![]() | |
TabularActionValues * | tabularAv {nullptr} |
state_t | previousPreviousState {0} |
action_t | previousPreviousAction {0} |
double | previousReward {0.0} |
std::vector< std::vector< double > > | e |
double | lambda {0.5} |
double | discountFactor {0.5} |
size_t | stateSize {0} |
size_t | actionSize {0} |
![]() | |
std::shared_ptr< Context > | context {nullptr} |
ActionValuesFunction * | actionValues {nullptr} |
double | alpha {-1.0} |
double | alpha0 {0.1} |
double | alphaCounter {1.0} |
double | alphaDecaySpeed {1.0} |
bool | hyperbolic {false} |
bool | stepwise {false} |
unsigned long long | stepwiseCounter {0} |
unsigned long long int | stepLength {0} |
std::vector< double > | bestQ |
std::vector< action_t > | bestAction |
std::vector< bool > | needsUpdate |
Definition at line 18 of file naiveQLambda.h.
|
inline |
Definition at line 23 of file naiveQLambda.h.
|
virtual |
Implements Mdp::EligibilityTraceAlgo.
Definition at line 16 of file naiveQLambda.cpp.
|
static |
Definition at line 21 of file naiveQLambda.h.