MachineIntelligenceCore:Toolchain
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TrainThenTestApplication.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_OPENGL_APPLICATION_TRAINTHENTESTAPPLICATION_HPP_
24 #define SRC_OPENGL_APPLICATION_TRAINTHENTESTAPPLICATION_HPP_
25 
27 
28 namespace mic {
29 namespace application {
30 
40 public:
45  TrainThenTestApplication(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 
76 };
77 
78 } /* namespace application */
79 } /* namespace mic */
80 
81 #endif /* SRC_OPENGL_APPLICATION_TRAINTHENTESTAPPLICATION_HPP_ */
Base class for all applications.
Definition: Application.hpp:38
Contains declaration of a base class for all applications.
Parent class for all applications consisting of two phases: a training phase (first), and testing phase (second). Each phase will end when then an adequate method (performLearning/TrainingStep) will return false. By default all computations are made within a single thread.