#include <ToBagSplitter.h>
Inheritance diagram for PLearn::ToBagSplitter:
Public Types | |
typedef Splitter | inherited |
Public Member Functions | |
ToBagSplitter () | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
Transforms a shallow copy into a deep copy. | |
PLEARN_DECLARE_OBJECT (ToBagSplitter) | |
Declares name and deepCopy methods. | |
virtual void | setDataSet (VMat the_dataset) |
Overridden. | |
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 | expected_size_of_bag |
PP< Splitter > | sub_splitter |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Protected Attributes | |
VMat | bags_index |
Used to store the list of all bags, with the indices of the corresponding rows in the dataset. | |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::Splitter. Definition at line 57 of file ToBagSplitter.h. |
|
Definition at line 54 of file ToBagSplitter.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 82 of file ToBagSplitter.cc. References build_(). Referenced by setDataSet(). |
|
This does the actual building.
Reimplemented from PLearn::Object. Definition at line 91 of file ToBagSplitter.cc. References bags_index, expected_size_of_bag, PLearn::TMat< T >::length(), PLearn::VMat::length(), PLearn::Mat, PLERROR, PLearn::TMat< T >::resize(), sub_splitter, and PLearn::TMat< T >::width(). Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::Object. Definition at line 67 of file ToBagSplitter.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Returns split number i.
Implements PLearn::Splitter. Definition at line 138 of file ToBagSplitter.cc. References PLearn::TVec< T >::append(), k, PLearn::TMat< T >::length(), PLearn::TVec< T >::length(), sub_splitter, and PLearn::TVec< T >::toMat(). |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Splitter. Definition at line 162 of file ToBagSplitter.cc. References PLERROR. |
|
Returns the number of sets per split.
Implements PLearn::Splitter. Definition at line 179 of file ToBagSplitter.cc. References sub_splitter. |
|
Returns the number of available different "splits".
Implements PLearn::Splitter. Definition at line 188 of file ToBagSplitter.cc. References sub_splitter. |
|
Declares name and deepCopy methods.
|
|
Overridden.
Reimplemented from PLearn::Splitter. Definition at line 196 of file ToBagSplitter.cc. References build(). |
|
Used to store the list of all bags, with the indices of the corresponding rows in the dataset.
Definition at line 72 of file ToBagSplitter.h. Referenced by build_(). |
|
Definition at line 80 of file ToBagSplitter.h. Referenced by build_(). |
|
Definition at line 81 of file ToBagSplitter.h. Referenced by build_(), getSplit(), nSetsPerSplit(), and nsplits(). |