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

PLearn::SequentialValidation Class Reference

#include <SequentialValidation.h>

Inheritance diagram for PLearn::SequentialValidation:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SequentialValidation ()
 Default constructor.

virtual void build ()
 Simply calls inherited::build() then build_().

virtual void setExperimentDirectory (const string &_expdir)
virtual void run ()
 The main method; runs the experiment.

 PLEARN_DECLARE_OBJECT (SequentialValidation)
 Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be.


Public Attributes

int init_train_size
 Size of first training set (default: 1).

int last_test_time
 The last time-step to use for testing (Default = -1, i.e. use all data).

VMat dataset
 The training/test set.

PP< StatefulLearnerlearner
 The StatefulLearner that will be tested.

TVec< stringstatnames
 Global statistics or split statistics to be computed.

TVec< stringtimewise_statnames
 Timewise statistics to be computed.

string expdir
 the directory where everything will be saved

bool report_stats
bool save_final_model
bool save_initial_model
bool save_initial_seqval
bool save_data_sets
bool save_test_outputs
bool save_test_costs
bool save_stat_collectors
bool provide_learner_expdir

Protected Member Functions

virtual void reportStats (const Vec &global_result)

Static Protected Member Functions

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


Private Types

typedef Object inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

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

Reimplemented from PLearn::Object.

Definition at line 52 of file SequentialValidation.h.


Constructor & Destructor Documentation

PLearn::SequentialValidation::SequentialValidation  ) 
 

Default constructor.

Definition at line 54 of file SequentialValidation.cc.


Member Function Documentation

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

Simply calls inherited::build() then build_().

Reimplemented from PLearn::Object.

Definition at line 80 of file SequentialValidation.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 69 of file SequentialValidation.cc.

References expdir, PLearn::force_mkdir(), PLearn::pathexists(), and PLERROR.

Referenced by build().

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

Declare this class' options.

Reimplemented from PLearn::Object.

Definition at line 86 of file SequentialValidation.cc.

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

PLearn::SequentialValidation::PLEARN_DECLARE_OBJECT SequentialValidation   ) 
 

Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be.

void PLearn::SequentialValidation::reportStats const Vec global_result  )  [protected, virtual]
 

Definition at line 373 of file SequentialValidation.cc.

References expdir, report_stats, and PLearn::saveAscii().

Referenced by run().

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

The main method; runs the experiment.

Reimplemented from PLearn::Object.

Definition at line 165 of file SequentialValidation.cc.

References PLearn::append_slash(), dataset, PLearn::endl(), expdir, PLearn::force_mkdir(), PLearn::VMat::getExample(), init_train_size, PLearn::StatSpec::intstatname, PLearn::join(), k, last_test_time, learner, PLearn::TVec< T >::length(), PLearn::VMat::length(), PLearn::TVec< string >::length(), PLERROR, report_stats, reportStats(), PLearn::save(), save_data_sets, save_final_model, save_initial_model, save_initial_seqval, save_stat_collectors, save_test_costs, save_test_outputs, PLearn::saveStringInFile(), setExperimentDirectory(), PLearn::StatSpec::setnum, statnames, PLearn::VMat::subMatRows(), PLearn::TVec< T >::subVec(), timewise_statnames, PLearn::tostring(), and PLearn::Vec.

void PLearn::SequentialValidation::setExperimentDirectory const string _expdir  )  [virtual]
 

Definition at line 366 of file SequentialValidation.cc.

References PLearn::append_slash(), expdir, learner, and provide_learner_expdir.

Referenced by run().


Member Data Documentation

VMat PLearn::SequentialValidation::dataset
 

The training/test set.

Definition at line 67 of file SequentialValidation.h.

Referenced by run().

string PLearn::SequentialValidation::expdir
 

the directory where everything will be saved

Definition at line 79 of file SequentialValidation.h.

Referenced by build_(), reportStats(), run(), and setExperimentDirectory().

int PLearn::SequentialValidation::init_train_size
 

Size of first training set (default: 1).

Definition at line 61 of file SequentialValidation.h.

Referenced by run().

int PLearn::SequentialValidation::last_test_time
 

The last time-step to use for testing (Default = -1, i.e. use all data).

Definition at line 64 of file SequentialValidation.h.

Referenced by run().

PP<StatefulLearner> PLearn::SequentialValidation::learner
 

The StatefulLearner that will be tested.

Definition at line 70 of file SequentialValidation.h.

Referenced by run(), and setExperimentDirectory().

bool PLearn::SequentialValidation::provide_learner_expdir
 

Definition at line 89 of file SequentialValidation.h.

Referenced by setExperimentDirectory().

bool PLearn::SequentialValidation::report_stats
 

Definition at line 81 of file SequentialValidation.h.

Referenced by reportStats(), and run().

bool PLearn::SequentialValidation::save_data_sets
 

Definition at line 85 of file SequentialValidation.h.

Referenced by run().

bool PLearn::SequentialValidation::save_final_model
 

Definition at line 82 of file SequentialValidation.h.

Referenced by run().

bool PLearn::SequentialValidation::save_initial_model
 

Definition at line 83 of file SequentialValidation.h.

Referenced by run().

bool PLearn::SequentialValidation::save_initial_seqval
 

Definition at line 84 of file SequentialValidation.h.

Referenced by run().

bool PLearn::SequentialValidation::save_stat_collectors
 

Definition at line 88 of file SequentialValidation.h.

Referenced by run().

bool PLearn::SequentialValidation::save_test_costs
 

Definition at line 87 of file SequentialValidation.h.

Referenced by run().

bool PLearn::SequentialValidation::save_test_outputs
 

Definition at line 86 of file SequentialValidation.h.

Referenced by run().

TVec<string> PLearn::SequentialValidation::statnames
 

Global statistics or split statistics to be computed.

Definition at line 73 of file SequentialValidation.h.

Referenced by run().

TVec<string> PLearn::SequentialValidation::timewise_statnames
 

Timewise statistics to be computed.

Definition at line 76 of file SequentialValidation.h.

Referenced by run().


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