|
PLearn 0.1
|
#include <ExplicitSplitter.h>


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 OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual ExplicitSplitter * | deepCopy (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< VMat > | getSplit (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 PPath & | declaringFile () |
Public Attributes | |
| TMat< VMat > | splitsets |
| 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. | |
Definition at line 48 of file ExplicitSplitter.h.
typedef Splitter PLearn::ExplicitSplitter::inherited [private] |
Reimplemented from PLearn::Splitter.
Definition at line 50 of file ExplicitSplitter.h.
| PLearn::ExplicitSplitter::ExplicitSplitter | ( | ) |
Definition at line 49 of file ExplicitSplitter.cc.
{}
| 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.
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.
{
inherited::build();
build_();
}
| 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);
}

| 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.
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().
{
inherited::makeDeepCopyFromShallowCopy(copies);
deepCopyField(splitsets, copies);
}

| 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();
}
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().
1.7.4