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

PLearn::TrainTestBagsSplitter Class Reference

#include <TrainTestBagsSplitter.h>

Inheritance diagram for PLearn::TrainTestBagsSplitter:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TrainTestBagsSplitter (real the_test_fraction=0.0)
virtual void build ()
 Should call simply inherited::build(), then this class's build_().

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


Member Typedef Documentation

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

Reimplemented from PLearn::Splitter.

Definition at line 52 of file TrainTestBagsSplitter.h.


Constructor & Destructor Documentation

PLearn::TrainTestBagsSplitter::TrainTestBagsSplitter real  the_test_fraction = 0.0  ) 
 

Definition at line 51 of file TrainTestBagsSplitter.cc.


Member Function Documentation

void PLearn::TrainTestBagsSplitter::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 77 of file TrainTestBagsSplitter.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 72 of file TrainTestBagsSplitter.cc.

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 60 of file TrainTestBagsSplitter.cc.

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

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

Returns split number i.

Implements PLearn::Splitter.

Definition at line 96 of file TrainTestBagsSplitter.cc.

References append_train, k, PLearn::VMat::length(), PLERROR, PLWARNING, PLearn::TVec< T >::resize(), PLearn::VMat::subMatRows(), test_fraction, PLearn::Vec, and PLearn::VMat::width().

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

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 88 of file TrainTestBagsSplitter.cc.

References append_train.

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

Returns the number of available different "splits".

Implements PLearn::Splitter.

Definition at line 83 of file TrainTestBagsSplitter.cc.

PLearn::TrainTestBagsSplitter::PLEARN_DECLARE_OBJECT TrainTestBagsSplitter   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

int PLearn::TrainTestBagsSplitter::append_train
 

Definition at line 67 of file TrainTestBagsSplitter.h.

Referenced by getSplit(), and nSetsPerSplit().

real PLearn::TrainTestBagsSplitter::test_fraction
 

Definition at line 68 of file TrainTestBagsSplitter.h.

Referenced by getSplit().


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