#include <SequentialSplitter.h>
Inheritance diagram for PLearn::SequentialSplitter:
Public Member Functions | |
SequentialSplitter (int horizon_=1, int init_train_size_=1, bool return_entire_vmat_=true) | |
if true, the test set (split[1]) will start at t=0 | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
PLEARN_DECLARE_OBJECT (SequentialSplitter) | |
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 | horizon |
int | init_train_size |
bool | return_entire_vmat |
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 53 of file SequentialSplitter.h. |
|
if true, the test set (split[1]) will start at t=0
Definition at line 48 of file SequentialSplitter.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 SequentialSplitter.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::Object. Definition at line 69 of file SequentialSplitter.cc. Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::Object. Definition at line 55 of file SequentialSplitter.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Returns split number i.
Implements PLearn::Splitter. Definition at line 97 of file SequentialSplitter.cc. References horizon, init_train_size, PLearn::PP< VMatrix >::isNull(), k, PLearn::VMat::length(), nsplits(), PLERROR, return_entire_vmat, and PLearn::VMat::subMatRows(). |
|
Returns the number of sets per split.
Implements PLearn::Splitter. Definition at line 80 of file SequentialSplitter.cc. |
|
Returns the number of available different "splits".
Implements PLearn::Splitter. Definition at line 85 of file SequentialSplitter.cc. References horizon, init_train_size, PLearn::PP< VMatrix >::isNull(), PLearn::VMat::length(), and PLERROR. Referenced by getSplit(). |
|
Declares name and deepCopy methods.
|
|
Definition at line 60 of file SequentialSplitter.h. Referenced by getSplit(), and nsplits(). |
|
Definition at line 61 of file SequentialSplitter.h. Referenced by getSplit(), and nsplits(). |
|
Definition at line 62 of file SequentialSplitter.h. Referenced by getSplit(). |