GClasses
|
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>
Public Member Functions | |
GIdentityFunction (GRand &rand) | |
General-purpose constructor. | |
GIdentityFunction (GDomNode *pNode, GLearnerLoader &ll) | |
Deserialization constructor. | |
virtual | ~GIdentityFunction () |
Destructor. | |
virtual GDomNode * | serialize (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 |
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.
GClasses::GIdentityFunction::GIdentityFunction | ( | GRand & | rand | ) |
General-purpose constructor.
GClasses::GIdentityFunction::GIdentityFunction | ( | GDomNode * | pNode, |
GLearnerLoader & | ll | ||
) |
Deserialization constructor.
virtual GClasses::GIdentityFunction::~GIdentityFunction | ( | ) | [virtual] |
Destructor.
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] |
See the comment for GSupervisedLearner::predictDistributionInner.
Implements GClasses::GSupervisedLearner.
virtual void GClasses::GIdentityFunction::predictInner | ( | const double * | pIn, |
double * | pOut | ||
) | [protected, virtual] |
See the comment for GSupervisedLearner::predictInner.
Implements GClasses::GSupervisedLearner.
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] |
See the comment for GSupervisedLearner::trainInner.
Implements GClasses::GSupervisedLearner.
size_t GClasses::GIdentityFunction::m_featureDims [protected] |
Reimplemented from GClasses::GSupervisedLearner.
size_t GClasses::GIdentityFunction::m_labelDims [protected] |
Reimplemented from GClasses::GSupervisedLearner.