GClasses
|
Reports periodically on the training of a self-organizing map - writing status to a stream every so many seconds or iterations, writing visualizations of the network or the network itself to sequentially named files.
TODO: write class for print stream reporters, network writing reporters and visualization writing reporters, and classes for only calling reporters at different intervals
#include <GSelfOrganizingMap.h>
Public Member Functions | |
virtual | ~Reporter () |
Destruct this reporter object. More... | |
virtual void | newStatus (unsigned iteration, unsigned subIteration, const GSelfOrganizingMap &map)=0 |
Tell the reporter the current status of the training. More... | |
virtual void | start (const GMatrix *trainingData, int maxIterations=-1, int maxSubIterations=-1) |
Reset this reporter to the beginning and tell it that there will be maxIterations iterations each consisting of maxSubIterations sub-iterations. (An iteration count is unknown if given as -1). Give the reporter access to the training data on which the map will be trained. The reporter does not own the training data. More... | |
virtual void | stop (unsigned iteration, unsigned subIteration, const GSelfOrganizingMap &map) |
Tell the reporter that the training has stopped at the given iteration and sub-iteration. More... | |
|
inlinevirtual |
Destruct this reporter object.
|
pure virtual |
Tell the reporter the current status of the training.
Implemented in GClasses::SOM::NoReporting, GClasses::SOM::SVG2DWeightReporter, GClasses::SOM::ReporterChain, and GClasses::SOM::IterationIntervalReporter.
|
inlinevirtual |
Reset this reporter to the beginning and tell it that there will be maxIterations iterations each consisting of maxSubIterations sub-iterations. (An iteration count is unknown if given as -1). Give the reporter access to the training data on which the map will be trained. The reporter does not own the training data.
Reimplemented in GClasses::SOM::NoReporting, GClasses::SOM::SVG2DWeightReporter, GClasses::SOM::ReporterChain, and GClasses::SOM::IterationIntervalReporter.
|
inlinevirtual |
Tell the reporter that the training has stopped at the given iteration and sub-iteration.
Reimplemented in GClasses::SOM::NoReporting, GClasses::SOM::SVG2DWeightReporter, GClasses::SOM::ReporterChain, and GClasses::SOM::IterationIntervalReporter.