#include <TrainTestBagsSplitter.h>
Inheritance diagram for PLearn::TrainTestBagsSplitter:
Public Member Functions | |
TrainTestBagsSplitter (real the_test_fraction=0.0) | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
PLEARN_DECLARE_OBJECT (TrainTestBagsSplitter) | |
Declares name and deepCopy methods. | |
virtual int | nsplits () const |
Returns the number of available different "splits". | |
virtual int | nSetsPerSplit () const |
Returns the number of sets per split. | |
virtual TVec< VMat > | getSplit (int i=0) |
Returns split number i. | |
Public Attributes | |
int | append_train |
real | test_fraction |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Private Types | |
typedef Splitter | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::Splitter. Definition at line 52 of file TrainTestBagsSplitter.h. |
|
Definition at line 51 of file TrainTestBagsSplitter.cc. |
|
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 77 of file TrainTestBagsSplitter.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::Object. Definition at line 72 of file TrainTestBagsSplitter.cc. Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::Object. Definition at line 60 of file TrainTestBagsSplitter.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Returns split number i.
Implements PLearn::Splitter. Definition at line 96 of file TrainTestBagsSplitter.cc. References append_train, k, PLearn::VMat::length(), PLERROR, PLWARNING, PLearn::TVec< T >::resize(), PLearn::VMat::subMatRows(), test_fraction, PLearn::Vec, and PLearn::VMat::width(). |
|
Returns the number of sets per split.
Implements PLearn::Splitter. Definition at line 88 of file TrainTestBagsSplitter.cc. References append_train. |
|
Returns the number of available different "splits".
Implements PLearn::Splitter. Definition at line 83 of file TrainTestBagsSplitter.cc. |
|
Declares name and deepCopy methods.
|
|
Definition at line 67 of file TrainTestBagsSplitter.h. Referenced by getSplit(), and nSetsPerSplit(). |
|
Definition at line 68 of file TrainTestBagsSplitter.h. Referenced by getSplit(). |