|
Qualia
0.2
|
#include <QLearningEGreedyPolicy.h>


Public Member Functions | |
| QLearningEGreedyPolicy (float epsilon) | |
| virtual | ~QLearningEGreedyPolicy () |
| virtual void | chooseAction (Action *action, const Observation *observation) |
Public Member Functions inherited from Policy | |
| Policy () | |
| virtual | ~Policy () |
| virtual void | init () |
| virtual void | setAgent (Agent *agent_) |
Public Attributes | |
| float | epsilon |
| The value (should be in [0,1]). More... | |
Public Attributes inherited from Policy | |
| Agent * | agent |
Implements the -greedy policy.
| QLearningEGreedyPolicy::QLearningEGreedyPolicy | ( | float | epsilon | ) |
|
virtual |
|
virtual |
This method is implemented by subclasses. It chooses an action based on given observation #observation# and puts it in #action#.
Implements Policy.
Reimplemented in QLearningEDecreasingPolicy.
| float QLearningEGreedyPolicy::epsilon |
The value (should be in [0,1]).
1.8.3.1