GClasses
GClasses::SOM::IterationIntervalReporter Class Reference

Detailed Description

Calls its sub-reporter on start, the first iteration of a block of "interval" iterations, and finally on stop.

#include <GSelfOrganizingMap.h>

Inheritance diagram for GClasses::SOM::IterationIntervalReporter:
GClasses::SOM::Reporter

Public Member Functions

 IterationIntervalReporter (std::shared_ptr< Reporter > &subReporter, unsigned interval)
 Sets up this reporter to call the subReporter the first out of every interval status updates. More...
 
virtual ~IterationIntervalReporter ()
 Destruct this reporter object. More...
 
virtual void newStatus (unsigned iteration, unsigned subIteration, const GSelfOrganizingMap &map)
 Call the newStatus of the subreporter the first time this is called, then wait interval-1 calls before calling it again. More...
 
virtual void start (const GMatrix *trainingData, int maxIterations=-1, int maxSubIterations=-1)
 Call the sub-reporter's start. More...
 
virtual void stop (unsigned iteration, unsigned subIteration, const GSelfOrganizingMap &map)
 Call the sub-reporter's stop. More...
 
- Public Member Functions inherited from GClasses::SOM::Reporter
virtual ~Reporter ()
 Destruct this reporter object. More...
 

Constructor & Destructor Documentation

GClasses::SOM::IterationIntervalReporter::IterationIntervalReporter ( std::shared_ptr< Reporter > &  subReporter,
unsigned  interval 
)
inline

Sets up this reporter to call the subReporter the first out of every interval status updates.

virtual GClasses::SOM::IterationIntervalReporter::~IterationIntervalReporter ( )
inlinevirtual

Destruct this reporter object.

Member Function Documentation

virtual void GClasses::SOM::IterationIntervalReporter::newStatus ( unsigned  iteration,
unsigned  subIteration,
const GSelfOrganizingMap map 
)
inlinevirtual

Call the newStatus of the subreporter the first time this is called, then wait interval-1 calls before calling it again.

Implements GClasses::SOM::Reporter.

virtual void GClasses::SOM::IterationIntervalReporter::start ( const GMatrix trainingData,
int  maxIterations = -1,
int  maxSubIterations = -1 
)
inlinevirtual

Call the sub-reporter's start.

Reimplemented from GClasses::SOM::Reporter.

virtual void GClasses::SOM::IterationIntervalReporter::stop ( unsigned  iteration,
unsigned  subIteration,
const GSelfOrganizingMap map 
)
inlinevirtual

Call the sub-reporter's stop.

Reimplemented from GClasses::SOM::Reporter.