GClasses

GClasses::GIdentityFunction Class Reference

This is an implementation of the identity function. It might be useful, for example, as the observation function in a GRecurrentModel if you want to create a Jordan network. More...

#include <GLearner.h>

Inheritance diagram for GClasses::GIdentityFunction:
GClasses::GSupervisedLearner GClasses::GTransducer

List of all members.

Public Member Functions

 GIdentityFunction (GRand &rand)
 General-purpose constructor.
 GIdentityFunction (GDomNode *pNode, GLearnerLoader &ll)
 Deserialization constructor.
virtual ~GIdentityFunction ()
 Destructor.
virtual GDomNodeserialize (GDom *pDoc)
 Marshal this object into a DOM, which can then be converted to a variety of serial formats.
virtual void clear ()
 See the comment for GSupervisedLearner::clear.

Protected Member Functions

virtual void trainInner (GMatrix &features, GMatrix &labels)
 See the comment for GSupervisedLearner::trainInner.
virtual void predictInner (const double *pIn, double *pOut)
 See the comment for GSupervisedLearner::predictInner.
virtual void predictDistributionInner (const double *pIn, GPrediction *pOut)
 See the comment for GSupervisedLearner::predictDistributionInner.

Protected Attributes

size_t m_labelDims
size_t m_featureDims

Detailed Description

This is an implementation of the identity function. It might be useful, for example, as the observation function in a GRecurrentModel if you want to create a Jordan network.


Constructor & Destructor Documentation

GClasses::GIdentityFunction::GIdentityFunction ( GRand rand)

General-purpose constructor.

GClasses::GIdentityFunction::GIdentityFunction ( GDomNode pNode,
GLearnerLoader ll 
)

Deserialization constructor.

virtual GClasses::GIdentityFunction::~GIdentityFunction ( ) [virtual]

Destructor.


Member Function Documentation

virtual void GClasses::GIdentityFunction::clear ( ) [virtual]

See the comment for GSupervisedLearner::clear.

Implements GClasses::GSupervisedLearner.

virtual void GClasses::GIdentityFunction::predictDistributionInner ( const double *  pIn,
GPrediction pOut 
) [protected, virtual]
virtual void GClasses::GIdentityFunction::predictInner ( const double *  pIn,
double *  pOut 
) [protected, virtual]
virtual GDomNode* GClasses::GIdentityFunction::serialize ( GDom pDoc) [virtual]

Marshal this object into a DOM, which can then be converted to a variety of serial formats.

Implements GClasses::GSupervisedLearner.

virtual void GClasses::GIdentityFunction::trainInner ( GMatrix features,
GMatrix labels 
) [protected, virtual]

Member Data Documentation