Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::KFoldSplitter Class Reference

#include <KFoldSplitter.h>

Inheritance diagram for PLearn::KFoldSplitter:

Inheritance graph
[legend]
Collaboration diagram for PLearn::KFoldSplitter:

Collaboration graph
[legend]
List of all members.

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< VMatgetSplit (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.


Member Typedef Documentation

typedef Splitter PLearn::KFoldSplitter::inherited [private]
 

Reimplemented from PLearn::Splitter.

Definition at line 52 of file KFoldSplitter.h.


Constructor & Destructor Documentation

PLearn::KFoldSplitter::KFoldSplitter int  k = 5  ) 
 

Definition at line 48 of file KFoldSplitter.cc.

References k.


Member Function Documentation

void PLearn::KFoldSplitter::build  )  [virtual]
 

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_().

void PLearn::KFoldSplitter::build_  )  [private]
 

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 71 of file KFoldSplitter.cc.

Referenced by build().

void PLearn::KFoldSplitter::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 59 of file KFoldSplitter.cc.

References PLearn::declareOption(), and PLearn::OptionList.

TVec< VMat > PLearn::KFoldSplitter::getSplit int  i = 0  )  [virtual]
 

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().

int PLearn::KFoldSplitter::nSetsPerSplit  )  const [virtual]
 

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 87 of file KFoldSplitter.cc.

References append_train.

int PLearn::KFoldSplitter::nsplits  )  const [virtual]
 

Returns the number of available different "splits".

Implements PLearn::Splitter.

Definition at line 82 of file KFoldSplitter.cc.

References K.

PLearn::KFoldSplitter::PLEARN_DECLARE_OBJECT KFoldSplitter   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

int PLearn::KFoldSplitter::append_train
 

Definition at line 68 of file KFoldSplitter.h.

Referenced by getSplit(), and nSetsPerSplit().

int PLearn::KFoldSplitter::K
 

Definition at line 67 of file KFoldSplitter.h.

Referenced by getSplit(), and nsplits().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:26:24 2004 for PLearn by doxygen 1.3.7