MachineIntelligenceCore:Toolchain
|
Parent class for all applications basing on continuous learning. By default all computations are made within a single thread. More...
#include <ContinuousLearningApplication.hpp>
Public Member Functions | |
ContinuousLearningApplication (std::string node_name_) | |
virtual | ~ContinuousLearningApplication () |
void | run () |
![]() | |
Application (std::string node_name_) | |
virtual | ~Application () |
virtual void | initialize (int argc, char *argv[])=0 |
virtual void | displayStatus () |
![]() | |
PropertyTree (std::string node_name_) | |
virtual | ~PropertyTree () |
void | registerProperty (PropertyInterface &prop) |
std::string | getNodeName () const |
void | loadPropertiesFromConfigNode (boost::property_tree::ptree const &pt_) |
void | printProperties () |
void | printPropertiesWithValues () |
PropertyInterface * | getProperty (const std::string &name) |
virtual void | initializePropertyDependentVariables ()=0 |
Protected Member Functions | |
virtual bool | performSingleStep (void) |
Performs single step of computations - switches between learning and testing depending on the iteration number. More... | |
virtual bool | performLearningStep ()=0 |
virtual bool | performTestingStep () |
virtual void | collectTestStatistics () |
virtual void | populateTestStatistics () |
Protected Attributes | |
mic::configuration::Property < unsigned int > | learning_iterations_to_test_ratio |
Number of learning steps after which a single classification test will be performed. More... | |
mic::configuration::Property < unsigned int > | number_of_averaged_test_measures |
Numbers of steps that will be averages. More... | |
unsigned long | learning_iteration |
Learning iteration counter - used in interlaces learning/testing mode. More... | |
![]() | |
unsigned long | iteration |
Iteration counter. More... | |
mic::configuration::Property < long > | number_of_iterations |
Parent class for all applications basing on continuous learning. By default all computations are made within a single thread.
Definition at line 38 of file ContinuousLearningApplication.hpp.
mic::application::ContinuousLearningApplication::ContinuousLearningApplication | ( | std::string | node_name_ | ) |
Default constructor. Sets the application/node name and registers properties.
node_name_ | Name of the application/node (in configuration file). |
Definition at line 31 of file ContinuousLearningApplication.cpp.
References learning_iteration, learning_iterations_to_test_ratio, number_of_averaged_test_measures, and mic::configuration::PropertyTree::registerProperty().
|
inlinevirtual |
Default destructor - empty.
Definition at line 50 of file ContinuousLearningApplication.hpp.
|
inlineprotectedvirtual |
Collects test statistics, executed in every testing step - virtual, empty now, to be overridden.
Definition at line 78 of file ContinuousLearningApplication.hpp.
Referenced by performTestingStep().
|
protectedpure virtual |
Perform learning - abstract, to be overridden.
Referenced by performSingleStep().
|
protectedvirtual |
Performs single step of computations - switches between learning and testing depending on the iteration number.
Implements mic::application::Application.
Definition at line 73 of file ContinuousLearningApplication.cpp.
References APP_STATE, mic::application::Application::iteration, learning_iterations_to_test_ratio, performLearningStep(), and performTestingStep().
Referenced by run().
|
protectedvirtual |
Testing is divided into two phases: collection of test statistics and their population. The former is executed in every testing step, whereas the latter only every number_of_averaged_test_measures testing steps.
Definition at line 85 of file ContinuousLearningApplication.cpp.
References collectTestStatistics(), mic::application::Application::iteration, LDEBUG, learning_iteration, LOG, number_of_averaged_test_measures, and populateTestStatistics().
Referenced by performSingleStep().
|
inlineprotectedvirtual |
Populates test statistics, executed only every number_of_averaged_test_measures testing steps - virtual, empty now, to be overridden.
Definition at line 83 of file ContinuousLearningApplication.hpp.
Referenced by performTestingStep().
|
virtual |
Handles pause/single step/quit modes/orders, calls performSingleStep() on every step.
Reimplemented from mic::application::Application.
Definition at line 43 of file ContinuousLearningApplication.cpp.
References APP_DATA_SYNCHRONIZATION_SCOPED_LOCK, APP_SLEEP, APP_STATE, mic::application::Application::iteration, and performSingleStep().
|
protected |
Learning iteration counter - used in interlaces learning/testing mode.
Definition at line 92 of file ContinuousLearningApplication.hpp.
Referenced by ContinuousLearningApplication(), and performTestingStep().
|
protected |
Number of learning steps after which a single classification test will be performed.
Definition at line 83 of file ContinuousLearningApplication.hpp.
Referenced by ContinuousLearningApplication(), and performSingleStep().
|
protected |
Numbers of steps that will be averages.
Definition at line 89 of file ContinuousLearningApplication.hpp.
Referenced by ContinuousLearningApplication(), and performTestingStep().