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

PLearn::LearnerProcessedVMatrix Class Reference

#include <LearnerProcessedVMatrix.h>

Inheritance diagram for PLearn::LearnerProcessedVMatrix:

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

Collaboration graph
[legend]
List of all members.

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< PLearnerlearner
 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.


Member Typedef Documentation

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

Reimplemented from PLearn::RowBufferedVMatrix.

Definition at line 52 of file LearnerProcessedVMatrix.h.


Constructor & Destructor Documentation

PLearn::LearnerProcessedVMatrix::LearnerProcessedVMatrix  ) 
 

Definition at line 51 of file LearnerProcessedVMatrix.cc.

References build_().


Member Function Documentation

void PLearn::LearnerProcessedVMatrix::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 115 of file LearnerProcessedVMatrix.cc.

References build_().

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

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

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

Declares this class' options.

Reimplemented from PLearn::VMatrix.

Definition at line 71 of file LearnerProcessedVMatrix.cc.

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

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

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

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

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.

PLearn::LearnerProcessedVMatrix::PLEARN_DECLARE_OBJECT LearnerProcessedVMatrix   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

PP<PLearner> PLearn::LearnerProcessedVMatrix::learner
 

The learner used to process the VMat's input.

Definition at line 70 of file LearnerProcessedVMatrix.h.

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

VMat PLearn::LearnerProcessedVMatrix::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.

Definition at line 67 of file LearnerProcessedVMatrix.h.

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

char PLearn::LearnerProcessedVMatrix::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).

Definition at line 76 of file LearnerProcessedVMatrix.h.

Referenced by build_().


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