MachineIntelligenceCore:Visualization
OpenGLContinuousLearningApplication.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_OPENGL_APPLICATION_OPENGLCONTINUOUSLEARNINGAPPLICATION_HPP_
24 #define SRC_OPENGL_APPLICATION_OPENGLCONTINUOUSLEARNINGAPPLICATION_HPP_
25 
27 
28 namespace mic {
29 namespace opengl {
30 namespace application {
31 
33 public:
34 
39  OpenGLContinuousLearningApplication(std::string node_name_);
40 
45 
46 protected:
47 
51  virtual bool performSingleStep(void);
52 
56  virtual bool performLearningStep() = 0;
57 
62  virtual bool performTestingStep();
63 
67  virtual void collectTestStatistics() { };
68 
72  virtual void populateTestStatistics() { };
73 
75  mic::configuration::Property<unsigned int> learning_iterations_to_test_ratio;
76 
78  mic::configuration::Property<unsigned int> number_of_averaged_test_measures;
79 
81  unsigned long learning_iteration;
82 
83 };
84 
85 } /* namespace application */
86 } /* namespace opengl */
87 } /* namespace mic */
88 
89 #endif /* SRC_OPENGL_APPLICATION_OPENGLCONTINUOUSLEARNINGAPPLICATION_HPP_ */
An abstract class implementing basic functions for two-threaded, OpenGL-based applications. Introduces the execution phases that are typical for all learning/classification applications, imposes fine code granulation.
virtual bool performSingleStep(void)
Performs single step of computations - switches between learning and testing depending on the iterati...
mic::configuration::Property< unsigned int > learning_iterations_to_test_ratio
Number of learning steps after which a single classification test will be performed.
mic::configuration::Property< unsigned int > number_of_averaged_test_measures
Numbers of steps that will be averages.
unsigned long learning_iteration
Learning iteration counter - used in interlaces learning/testing mode.