MachineIntelligenceCore:Toolchain
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EpisodicTrainAndTestApplication.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_APPLICATION_EPISODICTRAINANDTESTAPPLICATION_HPP_
24 #define SRC_APPLICATION_EPISODICTRAINANDTESTAPPLICATION_HPP_
25 
27 
28 namespace mic {
29 namespace application {
30 
40 public:
45  EpisodicTrainAndTestApplication(std::string node_name_);
46 
51 
55  void run();
56 
57 
58 protected:
62  virtual bool performSingleStep();
63 
68  virtual bool performLearningStep() = 0;
69 
74  virtual bool performTestingStep() = 0;
75 
79  virtual void startNewEpisode() = 0;
80 
84  virtual void finishCurrentEpisode() = 0;
85 
87  unsigned long episode;
88 
90  unsigned long learning_iteration;
91 
96 
97 
98 };
99 
100 } /* namespace application */
101 } /* namespace mic */
102 
103 #endif /* SRC_APPLICATION_EPISODICTRAINANDTESTAPPLICATION_HPP_ */
mic::configuration::Property< unsigned long > number_of_episodes
Base class for all applications.
Definition: Application.hpp:38
Contains declaration of a base class for all applications.
Parent class for all applications basing on episodes. Each episode consists of two phases: a training...
unsigned long learning_iteration
Learning iteration counter.