OpenANN  1.1.0
An open source library for artificial neural networks.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RandomAgent.h
Go to the documentation of this file.
1 #ifndef OPENANN_RL_RANDOM_AGENT_H_
2 #define OPENANN_RL_RANDOM_AGENT_H_
3 
4 #include <OpenANN/rl/Agent.h>
5 
6 namespace OpenANN
7 {
8 
14 class RandomAgent : public Agent
15 {
16  Environment* environment;
17  double accumulatedReward;
18  double lastReturn;
19 public:
20  RandomAgent();
21  virtual void abandoneIn(Environment& environment);
22  virtual void chooseAction();
23  virtual void chooseOptimalAction();
24 };
25 
26 } // namespace OpenANN
27 
28 #endif // OPENANN_RL_RANDOM_AGENT_H_