PLearn 0.1
|
#include <Measurer.h>
Public Member Functions | |
CallbackMeasurer (MeasurerCallbackFunction the_callback) | |
virtual bool | measure (int t, const Vec &costs) |
Public Attributes | |
MeasurerCallbackFunction | callback |
Definition at line 79 of file Measurer.h.
PLearn::CallbackMeasurer::CallbackMeasurer | ( | MeasurerCallbackFunction | the_callback | ) | [inline] |
Definition at line 84 of file Measurer.h.
:callback(the_callback) {}
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.
{ return callback(t,costs); }
Definition at line 82 of file Measurer.h.