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

PLearn::SequentialSplitter Class Reference

#include <SequentialSplitter.h>

Inheritance diagram for PLearn::SequentialSplitter:

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

Collaboration graph
[legend]
List of all members.

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


Member Typedef Documentation

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

Reimplemented from PLearn::Splitter.

Definition at line 53 of file SequentialSplitter.h.


Constructor & Destructor Documentation

PLearn::SequentialSplitter::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

Definition at line 48 of file SequentialSplitter.cc.


Member Function Documentation

void PLearn::SequentialSplitter::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 74 of file SequentialSplitter.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 69 of file SequentialSplitter.cc.

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 55 of file SequentialSplitter.cc.

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

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

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

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

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 80 of file SequentialSplitter.cc.

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

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

PLearn::SequentialSplitter::PLEARN_DECLARE_OBJECT SequentialSplitter   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

int PLearn::SequentialSplitter::horizon
 

Definition at line 60 of file SequentialSplitter.h.

Referenced by getSplit(), and nsplits().

int PLearn::SequentialSplitter::init_train_size
 

Definition at line 61 of file SequentialSplitter.h.

Referenced by getSplit(), and nsplits().

bool PLearn::SequentialSplitter::return_entire_vmat
 

Definition at line 62 of file SequentialSplitter.h.

Referenced by getSplit().


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