#include <EmbeddedSequentialLearner.h>
Inheritance diagram for PLearn::EmbeddedSequentialLearner:
Public Member Functions | |
EmbeddedSequentialLearner () | |
Constructor. | |
virtual void | build () |
simply calls inherited::build() then build_() | |
virtual void | train () |
Does the actual training. | |
virtual void | test (VMat testset, PP< VecStatsCollector > test_stats, VMat testoutputs=0, VMat testcosts=0) const |
virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) |
Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be. | |
virtual void | forget () |
(Re-)initializes the PLearner in its fresh state (that state may depend on the 'seed' option) And sets 'stage' back to 0 (this is the stage of a fresh learner!) | |
virtual void | computeOutput (const Vec &input, Vec &output) |
virtual void | computeCostsFromOutputs (const Vec &input, const Vec &output, const Vec &target, Vec &costs) |
virtual void | computeOutputAndCosts (const Vec &input, const Vec &target, Vec &output, Vec &costs) |
virtual void | computeCostsOnly (const Vec &input, const Vec &target, Vec &costs) |
virtual TVec< string > | getTestCostNames () const |
*** SUBCLASS WRITING: *** This should return the names of the costs computed by computeCostsFromOutpus | |
virtual TVec< string > | getTrainCostNames () const |
*** SUBCLASS WRITING: *** This should return the names of the objective costs that the train method computes and for which it updates the VecStatsCollector train_stats | |
PLEARN_DECLARE_OBJECT (EmbeddedSequentialLearner) | |
Declares a few other classes and functions related to this class. | |
Public Attributes | |
PP< PLearner > | learner |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declare this class' options. | |
Private Member Functions | |
void | build_ () |
This does the actual building. |
Definition at line 51 of file EmbeddedSequentialLearner.h.
|
Constructor.
Definition at line 49 of file EmbeddedSequentialLearner.cc. |
|
simply calls inherited::build() then build_()
Reimplemented from PLearn::SequentialLearner. Definition at line 68 of file EmbeddedSequentialLearner.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::SequentialLearner. Definition at line 58 of file EmbeddedSequentialLearner.cc. References forget(), PLearn::PP< PLearner >::isNull(), learner, and PLERROR. Referenced by build(). |
|
Definition at line 177 of file EmbeddedSequentialLearner.cc. References learner. |
|
Definition at line 185 of file EmbeddedSequentialLearner.cc. References learner. |
|
Definition at line 174 of file EmbeddedSequentialLearner.cc. References learner. |
|
Definition at line 181 of file EmbeddedSequentialLearner.cc. References learner. |
|
Declare this class' options.
Reimplemented from PLearn::SequentialLearner. Definition at line 74 of file EmbeddedSequentialLearner.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
(Re-)initializes the PLearner in its fresh state (that state may depend on the 'seed' option) And sets 'stage' back to 0 (this is the stage of a fresh learner!) *** SUBCLASS WRITING: *** A typical forget() method should do the following:
Reimplemented from PLearn::SequentialLearner. Definition at line 168 of file EmbeddedSequentialLearner.cc. References learner. Referenced by build_(). |
|
*** SUBCLASS WRITING: *** This should return the names of the costs computed by computeCostsFromOutpus
Implements PLearn::PLearner. Definition at line 188 of file EmbeddedSequentialLearner.cc. References learner. |
|
*** SUBCLASS WRITING: *** This should return the names of the objective costs that the train method computes and for which it updates the VecStatsCollector train_stats
Implements PLearn::PLearner. Definition at line 191 of file EmbeddedSequentialLearner.cc. References learner. |
|
Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be.
Reimplemented from PLearn::SequentialLearner. Definition at line 52 of file EmbeddedSequentialLearner.cc. References PLearn::CopiesMap, PLearn::deepCopyField(), and learner. |
|
Declares a few other classes and functions related to this class.
|
|
*** SUBCLASS WRITING: *** The method should:
Implements PLearn::SequentialLearner. Definition at line 105 of file EmbeddedSequentialLearner.cc. References PLearn::VMat::getExample(), PLearn::TVec< T >::hasMissing(), learner, PLearn::VMat::length(), MAX, PLearn::SequentialLearner::nTestCosts(), PLearn::SequentialLearner::outputsize(), PLearn::ProgressBar::update(), and PLearn::Vec. |
|
Does the actual training.
Implements PLearn::SequentialLearner. Definition at line 82 of file EmbeddedSequentialLearner.cc. References PLearn::TmpFilenames::addFilename(), PLearn::filter(), learner, PLearn::VMat::length(), PLearn::max(), PLearn::VMat::subMatRows(), and PLearn::PLearner::targetsize(). |
|
Definition at line 55 of file EmbeddedSequentialLearner.h. Referenced by build_(), computeCostsFromOutputs(), computeCostsOnly(), computeOutput(), computeOutputAndCosts(), forget(), getTestCostNames(), getTrainCostNames(), makeDeepCopyFromShallowCopy(), test(), and train(). |