#include <SequentialValidation.h>
Inheritance diagram for PLearn::SequentialValidation:
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< StatefulLearner > | learner |
The StatefulLearner that will be tested. | |
TVec< string > | statnames |
Global statistics or split statistics to be computed. | |
TVec< string > | timewise_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. |
|
Reimplemented from PLearn::Object. Definition at line 52 of file SequentialValidation.h. |
|
Default constructor.
Definition at line 54 of file SequentialValidation.cc. |
|
Simply calls inherited::build() then build_().
Reimplemented from PLearn::Object. Definition at line 80 of file SequentialValidation.cc. References build_(). |
|
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(). |
|
Declare this class' options.
Reimplemented from PLearn::Object. Definition at line 86 of file SequentialValidation.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be.
|
|
Definition at line 373 of file SequentialValidation.cc. References expdir, report_stats, and PLearn::saveAscii(). Referenced by run(). |
|
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. |
|
Definition at line 366 of file SequentialValidation.cc. References PLearn::append_slash(), expdir, learner, and provide_learner_expdir. Referenced by run(). |
|
The training/test set.
Definition at line 67 of file SequentialValidation.h. Referenced by run(). |
|
the directory where everything will be saved
Definition at line 79 of file SequentialValidation.h. Referenced by build_(), reportStats(), run(), and setExperimentDirectory(). |
|
Size of first training set (default: 1).
Definition at line 61 of file SequentialValidation.h. Referenced by run(). |
|
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(). |
|
The StatefulLearner that will be tested.
Definition at line 70 of file SequentialValidation.h. Referenced by run(), and setExperimentDirectory(). |
|
Definition at line 89 of file SequentialValidation.h. Referenced by setExperimentDirectory(). |
|
Definition at line 81 of file SequentialValidation.h. Referenced by reportStats(), and run(). |
|
Definition at line 85 of file SequentialValidation.h. Referenced by run(). |
|
Definition at line 82 of file SequentialValidation.h. Referenced by run(). |
|
Definition at line 83 of file SequentialValidation.h. Referenced by run(). |
|
Definition at line 84 of file SequentialValidation.h. Referenced by run(). |
|
Definition at line 88 of file SequentialValidation.h. Referenced by run(). |
|
Definition at line 87 of file SequentialValidation.h. Referenced by run(). |
|
Definition at line 86 of file SequentialValidation.h. Referenced by run(). |
|
Global statistics or split statistics to be computed.
Definition at line 73 of file SequentialValidation.h. Referenced by run(). |
|
Timewise statistics to be computed.
Definition at line 76 of file SequentialValidation.h. Referenced by run(). |