#include <KFoldSplitter.h>
Inheritance diagram for PLearn::KFoldSplitter:
Public Member Functions | |
KFoldSplitter (int k=5) | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
PLEARN_DECLARE_OBJECT (KFoldSplitter) | |
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 | K |
int | append_train |
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 KFoldSplitter.h. |
|
Definition at line 48 of file KFoldSplitter.cc. References k. |
|
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 76 of file KFoldSplitter.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::Object. Definition at line 71 of file KFoldSplitter.cc. Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::Object. Definition at line 59 of file KFoldSplitter.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Returns split number i.
Implements PLearn::Splitter. Definition at line 95 of file KFoldSplitter.cc. References PLearn::TVec< T >::append(), append_train, K, k, PLearn::VMat::length(), PLERROR, and PLearn::split(). |
|
Returns the number of sets per split.
Implements PLearn::Splitter. Definition at line 87 of file KFoldSplitter.cc. References append_train. |
|
Returns the number of available different "splits".
Implements PLearn::Splitter. Definition at line 82 of file KFoldSplitter.cc. References K. |
|
Declares name and deepCopy methods.
|
|
Definition at line 68 of file KFoldSplitter.h. Referenced by getSplit(), and nSetsPerSplit(). |
|
Definition at line 67 of file KFoldSplitter.h. Referenced by getSplit(), and nsplits(). |