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

PLearn::Experiment Class Reference

#include <Experiment.h>

Inheritance diagram for PLearn::Experiment:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef Object inherited

Public Member Functions

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

 PLEARN_DECLARE_OBJECT (Experiment)
 Declares name and deepCopy methods.

virtual void run ()
 runs the experiment


Public Attributes

string expdir
 Path of this experiment's directory in which to save all experiment results (will be created if it does not already exist).

PP< Learnerlearner
VMat dataset
PP< Splittersplitter
bool save_models
bool save_initial_models
bool save_test_outputs
bool save_test_costs

Static Protected Member Functions

void declareOptions (OptionList &ol)
 Declares this class' options.


Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef Object PLearn::Experiment::inherited
 

Reimplemented from PLearn::Object.

Definition at line 55 of file Experiment.h.


Constructor & Destructor Documentation

PLearn::Experiment::Experiment  ) 
 

Definition at line 49 of file Experiment.cc.


Member Function Documentation

void PLearn::Experiment::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 84 of file Experiment.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 78 of file Experiment.cc.

References dataset, and splitter.

Referenced by build().

void PLearn::Experiment::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 56 of file Experiment.cc.

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

PLearn::Experiment::PLEARN_DECLARE_OBJECT Experiment   ) 
 

Declares name and deepCopy methods.

void PLearn::Experiment::run  )  [virtual]
 

runs the experiment

Reimplemented from PLearn::Object.

Definition at line 90 of file Experiment.cc.

References PLearn::append_slash(), expdir, fname, PLearn::force_mkdir(), PLearn::VecStatsCollector::getMean(), PLearn::VecStatsCollector::getStdDev(), PLearn::VecStatsCollector::getStdError(), k, learner, PLearn::TVec< T >::length(), PLearn::pathexists(), PLERROR, PLearn::TVec< T >::println(), PLearn::save(), save_initial_models, save_models, save_test_costs, save_test_outputs, PLearn::TVec< T >::size(), slash, splitter, PLearn::TVec< T >::subVec(), PLearn::tostring(), PLearn::VecStatsCollector::update(), and PLearn::Vec.


Member Data Documentation

VMat PLearn::Experiment::dataset
 

Definition at line 66 of file Experiment.h.

Referenced by build_().

string PLearn::Experiment::expdir
 

Path of this experiment's directory in which to save all experiment results (will be created if it does not already exist).

Definition at line 64 of file Experiment.h.

Referenced by run().

PP<Learner> PLearn::Experiment::learner
 

Definition at line 65 of file Experiment.h.

Referenced by run().

bool PLearn::Experiment::save_initial_models
 

Definition at line 69 of file Experiment.h.

Referenced by run().

bool PLearn::Experiment::save_models
 

Definition at line 68 of file Experiment.h.

Referenced by run().

bool PLearn::Experiment::save_test_costs
 

Definition at line 71 of file Experiment.h.

Referenced by run().

bool PLearn::Experiment::save_test_outputs
 

Definition at line 70 of file Experiment.h.

Referenced by run().

PP<Splitter> PLearn::Experiment::splitter
 

Definition at line 67 of file Experiment.h.

Referenced by build_(), and run().


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