PLearn 0.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types
PLearn::IdentityPLearner Class Reference

#include <IdentityPLearner.h>

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

List of all members.

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 OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual IdentityPLearnerdeepCopy (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 PPathdeclaringFile ()

Static Public Attributes

static StaticInitializer _static_initializer_

Private Types

typedef PLearner inherited

Detailed Description

Definition at line 47 of file IdentityPLearner.h.


Member Typedef Documentation

Reimplemented from PLearn::PLearner.

Definition at line 49 of file IdentityPLearner.h.


Constructor & Destructor Documentation

PLearn::IdentityPLearner::IdentityPLearner ( )

Default constructor.

Definition at line 50 of file IdentityPLearner.cc.

{}

Member Function Documentation

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.

bool PLearn::IdentityPLearner::_isa_ ( const Object o) [static]

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);
}

Here is the call graph for this function:

void PLearn::IdentityPLearner::computeOutput ( const Vec input,
Vec output 
) const [virtual]

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;
}

Here is the call graph for this function:

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.

{}

Member Data Documentation

Reimplemented from PLearn::PLearner.

Definition at line 89 of file IdentityPLearner.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines