#include <SourceVMatrix.h>
Inheritance diagram for PLearn::SourceVMatrix:
Public Member Functions | |
SourceVMatrix () | |
SourceVMatrix (VMat the_source) | |
virtual void | setMetaDataDir (const string &the_metadatadir) |
Also sets the source's meta-data dir if it's not already set. | |
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 (SourceVMatrix) | |
Declares name and deepCopy methods. | |
Public Attributes | |
VMat | source |
Protected Member Functions | |
void | setMetaInfoFromSource () |
Sets all meta info (length_, width_, inputsize_, targetsize_, weightsize_, fieldnames, ...) that is not already set, by copying it from the source's Modification time is also set to the latest of the current mtime of this vmat and of the mtime of the source. | |
virtual void | getNewRow (int i, const Vec &v) const |
Must be implemented in subclasses: default version returns an error. | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Protected Attributes | |
Vec | sourcerow |
To be used in subclasses for convenience. | |
Private Types | |
typedef RowBufferedVMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
|
Definition at line 50 of file SourceVMatrix.cc. References inherited. |
|
Definition at line 97 of file SourceVMatrix.h. References source. |
|
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. Reimplemented in PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::CumVMatrix, PLearn::FilteredVMatrix, PLearn::GetInputVMatrix, PLearn::KNNVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MovingAverageVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsVMatrix, PLearn::SortRowsVMatrix, PLearn::SubInputVMatrix, PLearn::TransposeVMatrix, and PLearn::UpsideDownVMatrix. Definition at line 163 of file SourceVMatrix.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::VMatrix. Reimplemented in PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::CumVMatrix, PLearn::FilteredVMatrix, PLearn::GetInputVMatrix, PLearn::KNNVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MovingAverageVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsVMatrix, PLearn::SortRowsVMatrix, PLearn::SubInputVMatrix, PLearn::TransposeVMatrix, and PLearn::UpsideDownVMatrix. Definition at line 105 of file SourceVMatrix.cc. Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::VMatrix. Reimplemented in PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::CumVMatrix, PLearn::FilteredVMatrix, PLearn::GetInputVMatrix, PLearn::KNNVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MovingAverageVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsVMatrix, PLearn::SortRowsVMatrix, PLearn::SubInputVMatrix, PLearn::TransposeVMatrix, and PLearn::UpsideDownVMatrix. Definition at line 87 of file SourceVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Must be implemented in subclasses: default version returns an error.
Implements PLearn::RowBufferedVMatrix. Reimplemented in PLearn::CenteredVMatrix, PLearn::CumVMatrix, PLearn::FilteredVMatrix, PLearn::KNNVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsVMatrix, PLearn::SubInputVMatrix, and PLearn::TransposeVMatrix. Definition at line 179 of file SourceVMatrix.cc. References PLERROR. |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::RowBufferedVMatrix. Reimplemented in PLearn::CenteredVMatrix, PLearn::CumVMatrix, PLearn::FilteredVMatrix, PLearn::GetInputVMatrix, PLearn::KNNVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MovingAverageVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsVMatrix, PLearn::SortRowsVMatrix, PLearn::SubInputVMatrix, PLearn::TransposeVMatrix, and PLearn::UpsideDownVMatrix. Definition at line 169 of file SourceVMatrix.cc. References PLearn::deepCopyField(), source, and sourcerow. |
|
Declares name and deepCopy methods.
|
|
Also sets the source's meta-data dir if it's not already set. If there are fields that have no corresponding .smap .notes or .binning info files but the source has those files for a field with the same name, then those of the source will be set also for this vmatrix. Reimplemented from PLearn::VMatrix. Reimplemented in PLearn::FilteredVMatrix, PLearn::PrecomputedVMatrix, and PLearn::ProcessingVMatrix. Definition at line 65 of file SourceVMatrix.cc. References PLearn::file_exists(), PLearn::VMatrix::hasFieldInfos(), slash, and source. |
|
|
Definition at line 85 of file SourceVMatrix.h. Referenced by PLearn::local_neighbors_differences(), makeDeepCopyFromShallowCopy(), setMetaDataDir(), setMetaInfoFromSource(), and SourceVMatrix(). |
|
To be used in subclasses for convenience.
Definition at line 77 of file SourceVMatrix.h. Referenced by makeDeepCopyFromShallowCopy(). |