#include <MultiInstanceVMatrix.h>
Inheritance diagram for PLearn::MultiInstanceVMatrix:
Public Member Functions | |
MultiInstanceVMatrix () | |
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 (MultiInstanceVMatrix) | |
Declares name and deepCopy methods. | |
Public Attributes | |
int | header_lines_to_skip |
Protected Member Functions | |
virtual void | getNewRow (int i, const Vec &v) const |
This is the only method requiring implementation in subclasses. | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) | |
Protected Attributes | |
Mat | data_ |
string | filename_ |
vector< int > | configs_ |
vector< pair< string, int > > | names_ |
int | source_targetsize |
Private Types | |
typedef RowBufferedVMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 56 of file MultiInstanceVMatrix.h. Referenced by MultiInstanceVMatrix(). |
|
Definition at line 54 of file MultiInstanceVMatrix.cc. References inherited, and PLearn::Mat. |
|
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::VMatrix. Definition at line 245 of file MultiInstanceVMatrix.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::VMatrix. Definition at line 116 of file MultiInstanceVMatrix.cc. References configs_, count, data_, filename_, header_lines_to_skip, PLearn::mtime(), names_, PLERROR, PLearn::TMat< T >::resize(), PLearn::skipBlanksAndComments(), source_targetsize, and PLearn::split(). Referenced by build(). |
|
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); } Reimplemented from PLearn::VMatrix. Definition at line 91 of file MultiInstanceVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
This is the only method requiring implementation in subclasses.
Implements PLearn::RowBufferedVMatrix. Definition at line 86 of file MultiInstanceVMatrix.cc. References data_, and PLearn::Vec. |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 251 of file MultiInstanceVMatrix.cc. References data_, PLearn::deepCopyField(), and PLERROR. |
|
Declares name and deepCopy methods.
|
|
Definition at line 62 of file MultiInstanceVMatrix.h. Referenced by build_(). |
|
Definition at line 60 of file MultiInstanceVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 61 of file MultiInstanceVMatrix.h. Referenced by build_(). |
|
Definition at line 72 of file MultiInstanceVMatrix.h. Referenced by build_(). |
|
Definition at line 63 of file MultiInstanceVMatrix.h. Referenced by build_(). |
|
Definition at line 64 of file MultiInstanceVMatrix.h. Referenced by build_(). |