GClasses

GClasses::SOM::IterationIntervalReporter Class Reference

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

#include <GSelfOrganizingMap.h>

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

List of all members.

Public Member Functions

 IterationIntervalReporter (smart_ptr< Reporter > &subReporter, unsigned interval)
 Sets up this reporter to call the subReporter the first out of every interval status updates.
virtual void start (const GMatrix *trainingData, int maxIterations=-1, int maxSubIterations=-1)
 Call the sub-reporter's start.
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.
virtual void stop (unsigned iteration, unsigned subIteration, const GSelfOrganizingMap &map)
 Call the sub-reporter's stop.
virtual ~IterationIntervalReporter ()
 Destruct this reporter object.

Detailed Description

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


Constructor & Destructor Documentation

GClasses::SOM::IterationIntervalReporter::IterationIntervalReporter ( smart_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 ( ) [inline, virtual]

Destruct this reporter object.


Member Function Documentation

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

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 
) [inline, virtual]

Call the sub-reporter's start.

Reimplemented from GClasses::SOM::Reporter.

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

Call the sub-reporter's stop.

Reimplemented from GClasses::SOM::Reporter.