#include <PLearnerOutputVMatrix.h>
Inheritance diagram for PLearn::PLearnerOutputVMatrix:
Public Member Functions | |
PLearnerOutputVMatrix () | |
PLearnerOutputVMatrix (VMat data_, TVec< PP< PLearner > > learners_, bool put_raw_input_=false) | |
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 (PLearnerOutputVMatrix) | |
Declares name and deepCopy methods. | |
Public Attributes | |
VMat | data |
TVec< PP< PLearner > > | learners |
bool | put_raw_input |
bool | train_learners |
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. | |
Protected Attributes | |
Vec | row |
Vec | learner_input |
Mat | learners_output |
Vec | learner_target |
Vec | non_input_part_of_data_row |
bool | learners_need_train |
Used to keep track of whether learners need training or not. | |
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 PLearnerOutputVMatrix.h. Referenced by PLearnerOutputVMatrix(). |
|
Definition at line 50 of file PLearnerOutputVMatrix.cc. References inherited. |
|
Definition at line 58 of file PLearnerOutputVMatrix.cc. |
|
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 168 of file PLearnerOutputVMatrix.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::VMatrix. Definition at line 125 of file PLearnerOutputVMatrix.cc. References data, PLearn::VMatrix::inputsize(), learner_input, learner_target, learners, learners_need_train, learners_output, PLearn::VMat::length(), PLearn::TVec< PP< PLearner > >::length(), non_input_part_of_data_row, PLERROR, put_raw_input, PLearn::TVec< VMField >::resize(), PLearn::TMat< T >::resize(), PLearn::TVec< T >::resize(), row, PLearn::TVec< T >::subVec(), train_learners, and PLearn::VMat::width(). Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::VMatrix. Definition at line 101 of file PLearnerOutputVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
This is the only method requiring implementation.
Implements PLearn::RowBufferedVMatrix. Definition at line 76 of file PLearnerOutputVMatrix.cc. References data, learner_input, learners, learners_need_train, learners_output, PLearn::TVec< T >::length(), PLearn::TVec< PP< PLearner > >::length(), non_input_part_of_data_row, put_raw_input, row, PLearn::TMat< T >::size(), PLearn::TVec< T >::subVec(), PLearn::TMat< T >::toVec(), and PLearn::Vec. |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 174 of file PLearnerOutputVMatrix.cc. References PLearn::deepCopyField(), learner_input, learner_target, learners_output, non_input_part_of_data_row, and row. |
|
Declares name and deepCopy methods.
|
|
Definition at line 79 of file PLearnerOutputVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 66 of file PLearnerOutputVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 68 of file PLearnerOutputVMatrix.h. Referenced by build_(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 80 of file PLearnerOutputVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Used to keep track of whether learners need training or not.
Definition at line 70 of file PLearnerOutputVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 67 of file PLearnerOutputVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 69 of file PLearnerOutputVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 81 of file PLearnerOutputVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 65 of file PLearnerOutputVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 82 of file PLearnerOutputVMatrix.h. Referenced by build_(). |