![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/decision/E_GreedyDecider.h> More...
#include <E_GreedyDecider.h>
Public Member Functions | |
Constructor & destructor. | |
| E_GreedyDecider () | |
| Constructor. | |
| ~E_GreedyDecider () | |
| Destructor. | |
Initialization | |
| void | initialize (const FMDP< double > *fmdp) |
| Initializes the learner. | |
Incremental methods | |
| void | checkState (const Instantiation &newState, Idx actionId) |
| ActionSet | stateOptimalPolicy (const Instantiation &curState) |
Private Attributes | |
| StatesChecker | _statecpt_ |
| double | _sss_ |
Incremental methods | |
| void | setOptimalStrategy (MultiDimFunctionGraph< ActionSet, SetTerminalNodePolicy > *optPol) |
| const MultiDimFunctionGraph< ActionSet, SetTerminalNodePolicy > * | optPol_ {nullptr} |
| ActionSet | allActions_ |
<agrum/FMDP/decision/E_GreedyDecider.h>
Class to make decision following an epsilon-greedy compromise between exploration and exploitation
Definition at line 73 of file E_GreedyDecider.h.
| gum::E_GreedyDecider::E_GreedyDecider | ( | ) |
Constructor.
Definition at line 69 of file E_GreedyDecider.cpp.
References E_GreedyDecider(), and _sss_.
Referenced by E_GreedyDecider(), and ~E_GreedyDecider().
| gum::E_GreedyDecider::~E_GreedyDecider | ( | ) |
Destructor.
Definition at line 80 of file E_GreedyDecider.cpp.
References E_GreedyDecider().
|
virtual |
Implements gum::IDecisionStrategy.
Definition at line 111 of file E_GreedyDecider.cpp.
References _statecpt_.
Initializes the learner.
Reimplemented from gum::IDecisionStrategy.
Definition at line 94 of file E_GreedyDecider.cpp.
References _sss_, gum::FMDP< GUM_SCALAR >::beginVariables(), gum::FMDP< GUM_SCALAR >::endVariables(), and gum::IDecisionStrategy::initialize().
|
inlineinherited |
Definition at line 111 of file IDecisionStrategy.h.
References optPol_.
|
virtual |
Reimplemented from gum::IDecisionStrategy.
Definition at line 122 of file E_GreedyDecider.cpp.
References _sss_, _statecpt_, gum::IDecisionStrategy::allActions_, gum::randomProba(), gum::ActionSet::size(), and gum::IDecisionStrategy::stateOptimalPolicy().
|
private |
Definition at line 120 of file E_GreedyDecider.h.
Referenced by E_GreedyDecider(), initialize(), and stateOptimalPolicy().
|
private |
Definition at line 119 of file E_GreedyDecider.h.
Referenced by checkState(), and stateOptimalPolicy().
|
protectedinherited |
Definition at line 124 of file IDecisionStrategy.h.
Referenced by initialize(), gum::E_GreedyDecider::stateOptimalPolicy(), stateOptimalPolicy(), and gum::RandomDecider::stateOptimalPolicy().
|
protectedinherited |
Definition at line 121 of file IDecisionStrategy.h.
Referenced by initialize(), setOptimalStrategy(), and stateOptimalPolicy().