Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::PLearnerOutputVMatrix Class Reference

#include <PLearnerOutputVMatrix.h>

Inheritance diagram for PLearn::PLearnerOutputVMatrix:

Inheritance graph
[legend]
Collaboration diagram for PLearn::PLearnerOutputVMatrix:

Collaboration graph
[legend]
List of all members.

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.


Member Typedef Documentation

typedef RowBufferedVMatrix PLearn::PLearnerOutputVMatrix::inherited [private]
 

Reimplemented from PLearn::RowBufferedVMatrix.

Definition at line 56 of file PLearnerOutputVMatrix.h.

Referenced by PLearnerOutputVMatrix().


Constructor & Destructor Documentation

PLearn::PLearnerOutputVMatrix::PLearnerOutputVMatrix  ) 
 

Definition at line 50 of file PLearnerOutputVMatrix.cc.

References inherited.

PLearn::PLearnerOutputVMatrix::PLearnerOutputVMatrix VMat  data_,
TVec< PP< PLearner > >  learners_,
bool  put_raw_input_ = false
 

Definition at line 58 of file PLearnerOutputVMatrix.cc.


Member Function Documentation

void PLearn::PLearnerOutputVMatrix::build  )  [virtual]
 

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_().

void PLearn::PLearnerOutputVMatrix::build_  )  [private]
 

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().

void PLearn::PLearnerOutputVMatrix::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::VMatrix.

Definition at line 101 of file PLearnerOutputVMatrix.cc.

References PLearn::declareOption(), and PLearn::OptionList.

void PLearn::PLearnerOutputVMatrix::getNewRow int  i,
const Vec v
const [protected, virtual]
 

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.

void PLearn::PLearnerOutputVMatrix::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

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.

PLearn::PLearnerOutputVMatrix::PLEARN_DECLARE_OBJECT PLearnerOutputVMatrix   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

VMat PLearn::PLearnerOutputVMatrix::data
 

Definition at line 79 of file PLearnerOutputVMatrix.h.

Referenced by build_(), and getNewRow().

Vec PLearn::PLearnerOutputVMatrix::learner_input [mutable, protected]
 

Definition at line 66 of file PLearnerOutputVMatrix.h.

Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy().

Vec PLearn::PLearnerOutputVMatrix::learner_target [mutable, protected]
 

Definition at line 68 of file PLearnerOutputVMatrix.h.

Referenced by build_(), and makeDeepCopyFromShallowCopy().

TVec<PP<PLearner> > PLearn::PLearnerOutputVMatrix::learners
 

Definition at line 80 of file PLearnerOutputVMatrix.h.

Referenced by build_(), and getNewRow().

bool PLearn::PLearnerOutputVMatrix::learners_need_train [mutable, protected]
 

Used to keep track of whether learners need training or not.

Definition at line 70 of file PLearnerOutputVMatrix.h.

Referenced by build_(), and getNewRow().

Mat PLearn::PLearnerOutputVMatrix::learners_output [mutable, protected]
 

Definition at line 67 of file PLearnerOutputVMatrix.h.

Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy().

Vec PLearn::PLearnerOutputVMatrix::non_input_part_of_data_row [mutable, protected]
 

Definition at line 69 of file PLearnerOutputVMatrix.h.

Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy().

bool PLearn::PLearnerOutputVMatrix::put_raw_input
 

Definition at line 81 of file PLearnerOutputVMatrix.h.

Referenced by build_(), and getNewRow().

Vec PLearn::PLearnerOutputVMatrix::row [mutable, protected]
 

Definition at line 65 of file PLearnerOutputVMatrix.h.

Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy().

bool PLearn::PLearnerOutputVMatrix::train_learners
 

Definition at line 82 of file PLearnerOutputVMatrix.h.

Referenced by build_().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:26:31 2004 for PLearn by doxygen 1.3.7