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

PLearn::VarMeasurer Class Reference

#include <VarMeasurer.h>

Inheritance diagram for PLearn::VarMeasurer:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VarMeasurer (Var the_v, int the_every, const string &the_filename, const string &the_onscreen_prompt="")
virtual bool measure (int t, const Vec &costs)

Public Attributes

Var v
int every
string filename
ofstream out
string onscreen_prompt

Constructor & Destructor Documentation

PLearn::VarMeasurer::VarMeasurer Var  the_v,
int  the_every,
const string the_filename,
const string the_onscreen_prompt = ""
[inline]
 

Definition at line 64 of file VarMeasurer.h.

References every, filename, onscreen_prompt, out, and v.


Member Function Documentation

bool PLearn::VarMeasurer::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 shoudl be false).

Reimplemented from PLearn::Measurer.

Definition at line 45 of file VarMeasurer.cc.

References PLearn::endl(), every, PLearn::Var::length(), onscreen_prompt, out, v, and PLearn::Vec.


Member Data Documentation

int PLearn::VarMeasurer::every
 

Definition at line 57 of file VarMeasurer.h.

Referenced by measure(), and VarMeasurer().

string PLearn::VarMeasurer::filename
 

Definition at line 58 of file VarMeasurer.h.

Referenced by VarMeasurer().

string PLearn::VarMeasurer::onscreen_prompt
 

Definition at line 60 of file VarMeasurer.h.

Referenced by measure(), and VarMeasurer().

ofstream PLearn::VarMeasurer::out
 

Definition at line 59 of file VarMeasurer.h.

Referenced by measure(), and VarMeasurer().

Var PLearn::VarMeasurer::v
 

Definition at line 56 of file VarMeasurer.h.

Referenced by measure(), and VarMeasurer().


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