#include <TrainTestSplitter.h>
Inheritance diagram for PLearn::TrainTestSplitter:


Public Member Functions | |
| TrainTestSplitter (real the_test_fraction=0.0) | |
| virtual void | build () |
| Should call simply inherited::build(), then this class's build_(). | |
| PLEARN_DECLARE_OBJECT (TrainTestSplitter) | |
| 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 TrainTestSplitter.h. |
|
|
Definition at line 50 of file TrainTestSplitter.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 74 of file TrainTestSplitter.cc. References build_(). |
|
|
This does the actual building.
Reimplemented from PLearn::Object. Definition at line 69 of file TrainTestSplitter.cc. Referenced by build(). |
|
|
Declares this class' options.
Reimplemented from PLearn::Object. Definition at line 57 of file TrainTestSplitter.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
|
Returns split number i.
Implements PLearn::Splitter. Definition at line 93 of file TrainTestSplitter.cc. References append_train, k, PLearn::VMat::length(), PLERROR, PLearn::TVec< T >::resize(), PLearn::VMat::subMatRows(), and test_fraction. |
|
|
Returns the number of sets per split.
Implements PLearn::Splitter. Definition at line 85 of file TrainTestSplitter.cc. References append_train. |
|
|
Returns the number of available different "splits".
Implements PLearn::Splitter. Definition at line 80 of file TrainTestSplitter.cc. |
|
|
Declares name and deepCopy methods.
|
|
|
Definition at line 68 of file TrainTestSplitter.h. Referenced by getSplit(), and nSetsPerSplit(). |
|
|
Definition at line 69 of file TrainTestSplitter.h. Referenced by getSplit(). |
1.3.7