Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::CallbackMeasurer Class Reference

#include <Measurer.h>

Inheritance diagram for PLearn::CallbackMeasurer:

Inheritance graph
[legend]
Collaboration diagram for PLearn::CallbackMeasurer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CallbackMeasurer (MeasurerCallbackFunction the_callback)
virtual bool measure (int t, const Vec &costs)

Public Attributes

MeasurerCallbackFunction callback

Constructor & Destructor Documentation

PLearn::CallbackMeasurer::CallbackMeasurer MeasurerCallbackFunction  the_callback  )  [inline]
 

Definition at line 84 of file Measurer.h.

References callback.


Member Function Documentation

bool PLearn::CallbackMeasurer::measure int  t,
const Vec costs
[virtual]
 

This method is called at iteration t of a training algorithm, and it can monitor the cost values given the costs vector. The returned value indicates whether training should be stopped (by default should be false).

Reimplemented from PLearn::Measurer.

Definition at line 53 of file Measurer.cc.

References callback, and PLearn::Vec.


Member Data Documentation

MeasurerCallbackFunction PLearn::CallbackMeasurer::callback
 

Definition at line 82 of file Measurer.h.

Referenced by CallbackMeasurer(), and measure().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:24:07 2004 for PLearn by doxygen 1.3.7