#include <LearnerProcessedVMatrix.h>
Inheritance diagram for PLearn::LearnerProcessedVMatrix:
Public Member Functions | |
LearnerProcessedVMatrix () | |
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 (LearnerProcessedVMatrix) | |
Declares name and deepCopy methods. | |
Public Attributes | |
VMat | source |
The source vmatrix whose inputs wil be porcessed by the learner If present, the target and weight columns will be appended to the processed input in the resulting matrix. | |
PP< PLearner > | learner |
The learner used to process the VMat's input. | |
char | train_learner |
Indicates if the learner should be trained on the source, and on what part '0': don't train 'S': supervised training using input and target (possibly weighted if weight is present) 'U': unsupervised training using only input part (possibly weighted if weight is present). | |
Protected Member Functions | |
virtual void | getNewRow (int i, const Vec &v) const |
This is the only method requiring implementation. | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Private Types | |
typedef RowBufferedVMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 52 of file LearnerProcessedVMatrix.h. |
|
Definition at line 51 of file LearnerProcessedVMatrix.cc. References build_(). |
|
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 115 of file LearnerProcessedVMatrix.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::VMatrix. Definition at line 90 of file LearnerProcessedVMatrix.cc. References learner, PLearn::VMat::length(), source, PLearn::VMat::subMatColumns(), and train_learner. Referenced by build(), and LearnerProcessedVMatrix(). |
|
Declares this class' options.
Reimplemented from PLearn::VMatrix. Definition at line 71 of file LearnerProcessedVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
This is the only method requiring implementation.
Implements PLearn::RowBufferedVMatrix. Definition at line 57 of file LearnerProcessedVMatrix.cc. References learner, PLearn::TVec< T >::resize(), source, PLearn::TVec< T >::subVec(), PLearn::Vec, and PLearn::VMat::width(). |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 121 of file LearnerProcessedVMatrix.cc. References PLearn::deepCopyField(), learner, and source. |
|
Declares name and deepCopy methods.
|
|
The learner used to process the VMat's input.
Definition at line 70 of file LearnerProcessedVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
The source vmatrix whose inputs wil be porcessed by the learner If present, the target and weight columns will be appended to the processed input in the resulting matrix.
Definition at line 67 of file LearnerProcessedVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Indicates if the learner should be trained on the source, and on what part '0': don't train 'S': supervised training using input and target (possibly weighted if weight is present) 'U': unsupervised training using only input part (possibly weighted if weight is present).
Definition at line 76 of file LearnerProcessedVMatrix.h. Referenced by build_(). |