#include <TestMethod.h>
Inheritance diagram for PLearn::TestMethod:
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< Splitter > | splitter |
a n by 4 matrix of parsed statnames | |
TVec< string > | statnames |
bool | forget_learner |
Protected Attributes | |
TMat< string > | requested_stats |
Private Types | |
typedef Object | inherited |
Private Member Functions | |
void | build_ () |
|
Reimplemented from PLearn::Object. Definition at line 60 of file TestMethod.h. |
|
Definition at line 76 of file TestMethod.h. References forget_learner. |
|
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_(). |
|
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(). |
|
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. |
|
Train/Tests the given learner against the given dataset And returns a Vec with the computed statistics corresponding to the requested statnames.
|
|
Definition at line 73 of file TestMethod.h. Referenced by TestMethod(). |
|
Definition at line 66 of file TestMethod.h. |
|
a n by 4 matrix of parsed statnames
Definition at line 71 of file TestMethod.h. |
|
Definition at line 72 of file TestMethod.h. |