|
PLearn 0.1
|
#include <IdentityPLearner.h>


Public Member Functions | |
| IdentityPLearner () | |
| Default constructor. | |
| virtual int | outputsize () const |
| Returns the size of this learner's output, (which typically may depend on its inputsize(), targetsize() and set options). | |
| virtual void | train () |
| The role of the train method is to bring the learner up to stage==nstages, updating the train_stats collector with training costs measured on-line in the process. | |
| virtual void | computeOutput (const Vec &input, Vec &output) const |
| Computes the output from the input. | |
| virtual void | computeCostsFromOutputs (const Vec &input, const Vec &output, const Vec &target, Vec &costs) const |
| Computes the costs from already computed output. | |
| virtual TVec< std::string > | getTestCostNames () const |
| Returns the names of the costs computed by computeCostsFromOutputs (and thus the test method). | |
| virtual TVec< std::string > | getTrainCostNames () const |
| Returns the names of the objective costs that the train method computes and for which it updates the VecStatsCollector train_stats. | |
| virtual string | classname () const |
| virtual OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual IdentityPLearner * | deepCopy (CopiesMap &copies) const |
Static Public Member Functions | |
| static string | _classname_ () |
| static OptionList & | _getOptionList_ () |
| static RemoteMethodMap & | _getRemoteMethodMap_ () |
| static Object * | _new_instance_for_typemap_ () |
| static bool | _isa_ (const Object *o) |
| static void | _static_initialize_ () |
| static const PPath & | declaringFile () |
Static Public Attributes | |
| static StaticInitializer | _static_initializer_ |
Private Types | |
| typedef PLearner | inherited |
Definition at line 47 of file IdentityPLearner.h.
typedef PLearner PLearn::IdentityPLearner::inherited [private] |
Reimplemented from PLearn::PLearner.
Definition at line 49 of file IdentityPLearner.h.
| PLearn::IdentityPLearner::IdentityPLearner | ( | ) |
| string PLearn::IdentityPLearner::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::PLearner.
Definition at line 48 of file IdentityPLearner.cc.
| OptionList & PLearn::IdentityPLearner::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::PLearner.
Definition at line 48 of file IdentityPLearner.cc.
| RemoteMethodMap & PLearn::IdentityPLearner::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::PLearner.
Definition at line 48 of file IdentityPLearner.cc.
Reimplemented from PLearn::PLearner.
Definition at line 48 of file IdentityPLearner.cc.
| Object * PLearn::IdentityPLearner::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 48 of file IdentityPLearner.cc.
| StaticInitializer IdentityPLearner::_static_initializer_ & PLearn::IdentityPLearner::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::PLearner.
Definition at line 48 of file IdentityPLearner.cc.
| string PLearn::IdentityPLearner::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 48 of file IdentityPLearner.cc.
| void PLearn::IdentityPLearner::computeCostsFromOutputs | ( | const Vec & | input, |
| const Vec & | output, | ||
| const Vec & | target, | ||
| Vec & | costs | ||
| ) | const [virtual] |
Computes the costs from already computed output.
Implements PLearn::PLearner.
Definition at line 71 of file IdentityPLearner.cc.
References PLearn::TVec< T >::resize().
{
costs.resize(0);
}

Computes the output from the input.
Reimplemented from PLearn::PLearner.
Definition at line 63 of file IdentityPLearner.cc.
References PLearn::TVec< T >::resize().
{
// Copy input to output vector
int nout = inputsize();
output.resize(nout);
output << input;
}

| static const PPath& PLearn::IdentityPLearner::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::PLearner.
Definition at line 89 of file IdentityPLearner.h.
| IdentityPLearner * PLearn::IdentityPLearner::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::PLearner.
Definition at line 48 of file IdentityPLearner.cc.
| OptionList & PLearn::IdentityPLearner::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 48 of file IdentityPLearner.cc.
| OptionMap & PLearn::IdentityPLearner::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 48 of file IdentityPLearner.cc.
| RemoteMethodMap & PLearn::IdentityPLearner::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 48 of file IdentityPLearner.cc.
| TVec< string > PLearn::IdentityPLearner::getTestCostNames | ( | ) | const [virtual] |
Returns the names of the costs computed by computeCostsFromOutputs (and thus the test method).
Implements PLearn::PLearner.
Definition at line 76 of file IdentityPLearner.cc.
{
return TVec<string>();
}
| TVec< string > PLearn::IdentityPLearner::getTrainCostNames | ( | ) | const [virtual] |
Returns 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 81 of file IdentityPLearner.cc.
{
return TVec<string>();
}
| int PLearn::IdentityPLearner::outputsize | ( | ) | const [virtual] |
Returns the size of this learner's output, (which typically may depend on its inputsize(), targetsize() and set options).
Implements PLearn::PLearner.
Definition at line 53 of file IdentityPLearner.cc.
{
return inputsize();
}
| void PLearn::IdentityPLearner::train | ( | ) | [virtual] |
The role of the train method is to bring the learner up to stage==nstages, updating the train_stats collector with training costs measured on-line in the process.
Implements PLearn::PLearner.
Definition at line 59 of file IdentityPLearner.cc.
{}
Reimplemented from PLearn::PLearner.
Definition at line 89 of file IdentityPLearner.h.
1.7.4