|
PLearn 0.1
|
#include <UCIDataVMatrix.h>


Public Member Functions | |
| UCIDataVMatrix () | |
| Default constructor. | |
| virtual void | build () |
| Simply calls inherited::build() then build_(). | |
| virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) |
| Transform a shallow copy into a deep copy. | |
| virtual string | classname () const |
| virtual OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual UCIDataVMatrix * | deepCopy (CopiesMap &copies) const |
Static Public Member Functions | |
| static string | _classname_ () |
| Declare 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 | |
| PP< UCISpecification > | uci_spec |
Static Public Attributes | |
| static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
| static void | declareOptions (OptionList &ol) |
| Declares this class' options. | |
Private Types | |
| typedef ForwardVMatrix | inherited |
Private Member Functions | |
| void | build_ () |
| This does the actual building. | |
Definition at line 52 of file UCIDataVMatrix.h.
typedef ForwardVMatrix PLearn::UCIDataVMatrix::inherited [private] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 57 of file UCIDataVMatrix.h.
| PLearn::UCIDataVMatrix::UCIDataVMatrix | ( | ) |
| string PLearn::UCIDataVMatrix::_classname_ | ( | ) | [static] |
Declare name and deepCopy methods.
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| OptionList & PLearn::UCIDataVMatrix::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| RemoteMethodMap & PLearn::UCIDataVMatrix::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| Object * PLearn::UCIDataVMatrix::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| StaticInitializer UCIDataVMatrix::_static_initializer_ & PLearn::UCIDataVMatrix::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| void PLearn::UCIDataVMatrix::build | ( | ) | [virtual] |
Simply calls inherited::build() then build_().
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 87 of file UCIDataVMatrix.cc.
{
inherited::build();
build_();
updateMtime(0);
// updateMtime(uci_spec->data_all);
// updateMtime(uci_spec->data_train);
// updateMtime(uci_spec->data_test);
// updateMtime(uci_spec->file_all);
// updateMtime(uci_spec->file_train);
// updateMtime(uci_spec->file_test);
}
| void PLearn::UCIDataVMatrix::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 80 of file UCIDataVMatrix.cc.
References PLearn::loadUCISet().
{
if (uci_spec)
loadUCISet(vm, uci_spec);
inherited::build();
}

| string PLearn::UCIDataVMatrix::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| void PLearn::UCIDataVMatrix::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares this class' options.
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 60 of file UCIDataVMatrix.cc.
References PLearn::OptionBase::buildoption, PLearn::declareOption(), PLearn::VMatrix::inputsize_, PLearn::VMatrix::length_, PLearn::VMatrix::metadatadir, PLearn::OptionBase::nosave, PLearn::redeclareOption(), PLearn::VMatrix::targetsize_, uci_spec, PLearn::ForwardVMatrix::vm, PLearn::VMatrix::weightsize_, PLearn::VMatrix::width_, and PLearn::VMatrix::writable.
{
declareOption(ol, "uci_spec", &UCIDataVMatrix::uci_spec, OptionBase::buildoption,
"Specifications of a UCI dataset.");
// Now call the parent class' declareOptions
inherited::declareOptions(ol);
// Hide unused options.
redeclareOption(ol, "vm", &UCIDataVMatrix::vm, OptionBase::nosave, "Not used.");
redeclareOption(ol, "writable", &UCIDataVMatrix::writable, OptionBase::nosave, "Not used.");
redeclareOption(ol, "length", &UCIDataVMatrix::length_, OptionBase::nosave, "Not used.");
redeclareOption(ol, "width", &UCIDataVMatrix::width_, OptionBase::nosave, "Not used.");
redeclareOption(ol, "inputsize", &UCIDataVMatrix::inputsize_, OptionBase::nosave, "Not used.");
redeclareOption(ol, "targetsize", &UCIDataVMatrix::targetsize_, OptionBase::nosave, "Not used.");
redeclareOption(ol, "weightsize", &UCIDataVMatrix::weightsize_, OptionBase::nosave, "Not used.");
redeclareOption(ol, "metadatadir", &UCIDataVMatrix::metadatadir, OptionBase::nosave, "Not used.");
}

| static const PPath& PLearn::UCIDataVMatrix::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 105 of file UCIDataVMatrix.h.
| UCIDataVMatrix * PLearn::UCIDataVMatrix::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| OptionList & PLearn::UCIDataVMatrix::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| OptionMap & PLearn::UCIDataVMatrix::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| RemoteMethodMap & PLearn::UCIDataVMatrix::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 58 of file UCIDataVMatrix.cc.
| void PLearn::UCIDataVMatrix::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transform a shallow copy into a deep copy.
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 100 of file UCIDataVMatrix.cc.
References PLERROR.
{
inherited::makeDeepCopyFromShallowCopy(copies);
// ### Call deepCopyField on all "pointer-like" fields
// ### that you wish to be deepCopied rather than
// ### shallow-copied.
// ### ex:
// deepCopyField(trainvec, copies);
// ### Remove this line when you have fully implemented this method.
PLERROR("UCIDataVMatrix::makeDeepCopyFromShallowCopy not fully (correctly) implemented yet!");
}
Reimplemented from PLearn::ForwardVMatrix.
Definition at line 105 of file UCIDataVMatrix.h.
Definition at line 71 of file UCIDataVMatrix.h.
Referenced by declareOptions().
1.7.4