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

PLearn::Train Class Reference

#include <Train.h>

Inheritance diagram for PLearn::Train:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

void run ()
 Overload this for runnable objects (default method issues a runtime error) Runnable objects are objects that can be used as *THE* object of a .plearn script.

 Train ()
 Default constructor.

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


Public Attributes

PP< PLearnerlearner
string psave
VMat trainset

Static Protected Member Functions

void declareOptions (OptionList &ol)
 Declares this class' options.


Private Types

typedef Object inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef Object PLearn::Train::inherited [private]
 

Reimplemented from PLearn::Object.

Definition at line 58 of file Train.h.


Constructor & Destructor Documentation

PLearn::Train::Train  ) 
 

Default constructor.

Definition at line 50 of file Train.cc.


Member Function Documentation

void PLearn::Train::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::Object.

Definition at line 101 of file Train.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 89 of file Train.cc.

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 64 of file Train.cc.

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

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

Transforms a shallow copy into a deep copy.

Definition at line 117 of file Train.cc.

References PLERROR.

PLearn::Train::PLEARN_DECLARE_OBJECT Train   ) 
 

void PLearn::Train::run  )  [virtual]
 

Overload this for runnable objects (default method issues a runtime error) Runnable objects are objects that can be used as *THE* object of a .plearn script.

The run() method specifies what they should do when executed.

Reimplemented from PLearn::Object.

Definition at line 107 of file Train.cc.

References PLearn::endl(), learner, psave, PLearn::save(), and trainset.


Member Data Documentation

PP<PLearner> PLearn::Train::learner
 

Definition at line 73 of file Train.h.

Referenced by run().

string PLearn::Train::psave
 

Definition at line 75 of file Train.h.

Referenced by run().

VMat PLearn::Train::trainset
 

Definition at line 76 of file Train.h.

Referenced by run().


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