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

PLearn::TestMethod Class Reference

#include <TestMethod.h>

Inheritance diagram for PLearn::TestMethod:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TestMethod ()
 PLEARN_DECLARE_OBJECT (TestMethod)
 Train/Tests the given learner against the given dataset And returns a Vec with the computed statistics corresponding to the requested statnames.

virtual void build ()
 Should call simply inherited::build(), then this class's build_().


Static Public Member Functions

void declareOptions (OptionList &ol)
 redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)


Public Attributes

PP< Splittersplitter
 a n by 4 matrix of parsed statnames

TVec< stringstatnames
bool forget_learner

Protected Attributes

TMat< stringrequested_stats

Private Types

typedef Object inherited

Private Member Functions

void build_ ()

Member Typedef Documentation

typedef Object PLearn::TestMethod::inherited [private]
 

Reimplemented from PLearn::Object.

Definition at line 60 of file TestMethod.h.


Constructor & Destructor Documentation

PLearn::TestMethod::TestMethod  )  [inline]
 

Definition at line 76 of file TestMethod.h.

References forget_learner.


Member Function Documentation

void PLearn::TestMethod::build  )  [virtual]
 

Should call simply inherited::build(), then this class's build_().

This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.

Reimplemented from PLearn::Object.

Definition at line 126 of file TestMethod.cc.

References build_().

void PLearn::TestMethod::build_  )  [private]
 

This method should be redefined in subclasses and do the actual building of the object according to previously set option fields. Constructors can just set option fields, and then call build_. This method is NOT virtual, and will typically be called only from three places: a constructor, the public virtual build() method, and possibly the public virtual read method (which calls its parent's read). build_() can assume that it's parent's build_ has already been called.

Reimplemented from PLearn::Object.

Definition at line 122 of file TestMethod.cc.

Referenced by build().

void PLearn::TestMethod::declareOptions OptionList ol  )  [static]
 

redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)

ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); }

Reimplemented from PLearn::Object.

Definition at line 133 of file TestMethod.cc.

References PLearn::declareOption(), and PLearn::OptionList.

PLearn::TestMethod::PLEARN_DECLARE_OBJECT TestMethod   ) 
 

Train/Tests the given learner against the given dataset And returns a Vec with the computed statistics corresponding to the requested statnames.


Member Data Documentation

bool PLearn::TestMethod::forget_learner
 

Definition at line 73 of file TestMethod.h.

Referenced by TestMethod().

TMat<string> PLearn::TestMethod::requested_stats [protected]
 

Definition at line 66 of file TestMethod.h.

PP<Splitter> PLearn::TestMethod::splitter
 

a n by 4 matrix of parsed statnames

Definition at line 71 of file TestMethod.h.

TVec<string> PLearn::TestMethod::statnames
 

Definition at line 72 of file TestMethod.h.


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