PLearn 0.1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Member Functions | Private Types | Private Member Functions
PLearn::ExplicitSplitter Class Reference

#include <ExplicitSplitter.h>

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

List of all members.

Public Member Functions

 ExplicitSplitter ()
virtual void build ()
 Post-constructor.
virtual void makeDeepCopyFromShallowCopy (CopiesMap &copies)
 Transforms a shallow copy into a deep copy.
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual ExplicitSplitterdeepCopy (CopiesMap &copies) const
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.

Static Public Member Functions

static string _classname_ ()
 Declares name and deepCopy methods.
static OptionList_getOptionList_ ()
static RemoteMethodMap_getRemoteMethodMap_ ()
static Object_new_instance_for_typemap_ ()
static bool _isa_ (const Object *o)
static void _static_initialize_ ()
static const PPathdeclaringFile ()

Public Attributes

TMat< VMatsplitsets
 The datasets of the split.

Static Public Attributes

static StaticInitializer _static_initializer_

Static Protected Member Functions

static void declareOptions (OptionList &ol)
 Declares this class' options.

Private Types

typedef Splitter inherited

Private Member Functions

void build_ ()
 This does the actual building.

Detailed Description

Definition at line 48 of file ExplicitSplitter.h.


Member Typedef Documentation

Reimplemented from PLearn::Splitter.

Definition at line 50 of file ExplicitSplitter.h.


Constructor & Destructor Documentation

PLearn::ExplicitSplitter::ExplicitSplitter ( )

Definition at line 49 of file ExplicitSplitter.cc.

{}

Member Function Documentation

string PLearn::ExplicitSplitter::_classname_ ( ) [static]

Declares name and deepCopy methods.

Reimplemented from PLearn::Splitter.

Definition at line 57 of file ExplicitSplitter.cc.

OptionList & PLearn::ExplicitSplitter::_getOptionList_ ( ) [static]

Reimplemented from PLearn::Splitter.

Definition at line 57 of file ExplicitSplitter.cc.

RemoteMethodMap & PLearn::ExplicitSplitter::_getRemoteMethodMap_ ( ) [static]

Reimplemented from PLearn::Splitter.

Definition at line 57 of file ExplicitSplitter.cc.

bool PLearn::ExplicitSplitter::_isa_ ( const Object o) [static]

Reimplemented from PLearn::Splitter.

Definition at line 57 of file ExplicitSplitter.cc.

Object * PLearn::ExplicitSplitter::_new_instance_for_typemap_ ( ) [static]

Reimplemented from PLearn::Object.

Definition at line 57 of file ExplicitSplitter.cc.

StaticInitializer ExplicitSplitter::_static_initializer_ & PLearn::ExplicitSplitter::_static_initialize_ ( ) [static]

Reimplemented from PLearn::Splitter.

Definition at line 57 of file ExplicitSplitter.cc.

void PLearn::ExplicitSplitter::build ( ) [virtual]

Post-constructor.

The normal implementation 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 80 of file ExplicitSplitter.cc.

void PLearn::ExplicitSplitter::build_ ( ) [private]

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 74 of file ExplicitSplitter.cc.

{}
string PLearn::ExplicitSplitter::classname ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 57 of file ExplicitSplitter.cc.

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

Declares this class' options.

Reimplemented from PLearn::Splitter.

Definition at line 62 of file ExplicitSplitter.cc.

References PLearn::OptionBase::buildoption, PLearn::declareOption(), and splitsets.

{
    declareOption(ol, "splitsets", &ExplicitSplitter::splitsets,
        OptionBase::buildoption,
       "The i-th row of this matrix contains the sets for the i-th split.");

    inherited::declareOptions(ol);
}

Here is the call graph for this function:

static const PPath& PLearn::ExplicitSplitter::declaringFile ( ) [inline, static]

Reimplemented from PLearn::Splitter.

Definition at line 94 of file ExplicitSplitter.h.

ExplicitSplitter * PLearn::ExplicitSplitter::deepCopy ( CopiesMap copies) const [virtual]

Reimplemented from PLearn::Splitter.

Definition at line 57 of file ExplicitSplitter.cc.

OptionList & PLearn::ExplicitSplitter::getOptionList ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 57 of file ExplicitSplitter.cc.

OptionMap & PLearn::ExplicitSplitter::getOptionMap ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 57 of file ExplicitSplitter.cc.

RemoteMethodMap & PLearn::ExplicitSplitter::getRemoteMethodMap ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 57 of file ExplicitSplitter.cc.

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

Returns split number i.

Implements PLearn::Splitter.

Definition at line 103 of file ExplicitSplitter.cc.

{
    return splitsets(k);
}
void PLearn::ExplicitSplitter::makeDeepCopyFromShallowCopy ( CopiesMap copies) [virtual]

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Splitter.

Definition at line 86 of file ExplicitSplitter.cc.

References PLearn::deepCopyField().

Here is the call graph for this function:

int PLearn::ExplicitSplitter::nSetsPerSplit ( ) const [virtual]

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 97 of file ExplicitSplitter.cc.

{
    return splitsets.width();
}
int PLearn::ExplicitSplitter::nsplits ( ) const [virtual]

Returns the number of available different "splits".

Implements PLearn::Splitter.

Definition at line 92 of file ExplicitSplitter.cc.

{
    return splitsets.length();
}

Member Data Documentation

Reimplemented from PLearn::Splitter.

Definition at line 94 of file ExplicitSplitter.h.

The datasets of the split.

Definition at line 63 of file ExplicitSplitter.h.

Referenced by declareOptions().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines