|
Scheduler
|
#include <reinforcedLearning.h>
Public Member Functions | |
| ReinforcedLearning (std::shared_ptr< Context > context) | |
| ~ReinforcedLearning () | |
| void | initializeModel () |
| void | updateModel () |
| void | end () |
Public Member Functions inherited from Mdp::LearningStrategy | |
| LearningStrategy (std::shared_ptr< Context > context) | |
| virtual | ~LearningStrategy () |
Static Public Attributes | |
| static constexpr const char * | configKey = "reinforcedLearning" |
Protected Member Functions | |
| void | initializePolicy () |
| void | initializeActionSelectionStrategy () |
| void | updatePolicy (state_t state) |
| void | updateLongTermReward (double reward, double discountFactor) |
| void | epsilonGreedyPolicyUpdate (state_t state) |
| action_t | getBestAction (state_t state) |
| RlBackupAlgorithm * | getBackupAlgorithm () |
| void | printAVRecord () |
| void | updateEpsilon () |
| void | updateActualDiscountedReward (double reward) |
| void | printActionValuesToFile (std::string folder) |
| action_t | getBestActionFromInitialPolicy (state_t s) |
| void | printStateSpace () |
Protected Attributes | |
| size_t | S {0} |
| size_t | A {0} |
| ActionValuesFunction * | actionValues {nullptr} |
| double | discountFactor {0.1} |
| double | alpha {0.1} |
| double | alphaDecaySpeed {0.99} |
| state_t | previousState |
| action_t | previousAction |
| RlBackupAlgorithm * | backupAlgo {nullptr} |
| ActionValuesRecord | actionValuesRecord |
| long long unsigned int | epsilonTimeOut {0} |
| double | actualDiscountedReward {0.0} |
| Utils::Record | rewardRecord |
| ActionSelectionStrategy * | actionSelectionStrategy {nullptr} |
| double | longTermReward {0.0} |
Protected Attributes inherited from Mdp::LearningStrategy | |
| std::shared_ptr< Context > | context |
Definition at line 35 of file reinforcedLearning.h.
| ReinforcedLearning::ReinforcedLearning | ( | std::shared_ptr< Context > | context | ) |
Definition at line 45 of file reinforcedLearning.cpp.
| ReinforcedLearning::~ReinforcedLearning | ( | ) |
Definition at line 56 of file reinforcedLearning.cpp.
|
virtual |
Reimplemented from Mdp::LearningStrategy.
Definition at line 285 of file reinforcedLearning.cpp.
|
protected |
Definition at line 222 of file reinforcedLearning.cpp.
|
protected |
Definition at line 144 of file reinforcedLearning.cpp.
Definition at line 279 of file reinforcedLearning.cpp.
Definition at line 231 of file reinforcedLearning.cpp.
|
protected |
Definition at line 96 of file reinforcedLearning.cpp.
|
virtual |
Implements Mdp::LearningStrategy.
Definition at line 64 of file reinforcedLearning.cpp.
|
protected |
Definition at line 126 of file reinforcedLearning.cpp.
|
protected |
Definition at line 299 of file reinforcedLearning.cpp.
|
protected |
|
protected |
Definition at line 80 of file reinforcedLearning.cpp.
|
protected |
Definition at line 203 of file reinforcedLearning.cpp.
|
protected |
|
protected |
Definition at line 197 of file reinforcedLearning.cpp.
|
virtual |
Implements Mdp::LearningStrategy.
Definition at line 176 of file reinforcedLearning.cpp.
|
protected |
Definition at line 212 of file reinforcedLearning.cpp.
|
protected |
Definition at line 47 of file reinforcedLearning.h.
|
protected |
Definition at line 74 of file reinforcedLearning.h.
|
protected |
Definition at line 55 of file reinforcedLearning.h.
|
protected |
Definition at line 66 of file reinforcedLearning.h.
|
protected |
Definition at line 71 of file reinforcedLearning.h.
|
protected |
Definition at line 58 of file reinforcedLearning.h.
|
protected |
Definition at line 59 of file reinforcedLearning.h.
|
protected |
Definition at line 63 of file reinforcedLearning.h.
|
static |
Definition at line 38 of file reinforcedLearning.h.
|
protected |
Definition at line 57 of file reinforcedLearning.h.
|
protected |
Definition at line 69 of file reinforcedLearning.h.
|
protected |
Definition at line 75 of file reinforcedLearning.h.
|
protected |
Definition at line 62 of file reinforcedLearning.h.
|
protected |
Definition at line 61 of file reinforcedLearning.h.
|
protected |
Definition at line 72 of file reinforcedLearning.h.
|
protected |
Definition at line 46 of file reinforcedLearning.h.
1.8.11