GClasses

GClasses::GTwoWayIncrementalTransform Class Reference

This is the base class of algorithms that can transform data one row at a time without supervision, and can (un)transform a row back to its original form if necessary. More...

#include <GTransform.h>

Inheritance diagram for GClasses::GTwoWayIncrementalTransform:
GClasses::GIncrementalTransform GClasses::GTransform GClasses::GDiscretize GClasses::GImputeMissingVals GClasses::GNominalToCat GClasses::GNormalize GClasses::GPCA GClasses::GTwoWayTransformChainer

List of all members.

Public Member Functions

 GTwoWayIncrementalTransform ()
 GTwoWayIncrementalTransform (GDomNode *pNode, GLearnerLoader &ll)
virtual ~GTwoWayIncrementalTransform ()
virtual void untransform (const double *pIn, double *pOut)=0
 pIn is a previously transformed row, and pOut is a buffer that will hold the untransformed row. train must be called before this method is used
virtual void untransformToDistribution (const double *pIn, GPrediction *pOut)=0
 Similar to untransform, except it produces a distribution instead of just a vector. This method may not be implemented in all classes, so it may throw an exception.
virtual GMatrixuntransformBatch (GMatrix &in)
 This assumes train was previously called, and untransforms all the rows in pIn and returns the results.

Detailed Description

This is the base class of algorithms that can transform data one row at a time without supervision, and can (un)transform a row back to its original form if necessary.


Constructor & Destructor Documentation

GClasses::GTwoWayIncrementalTransform::GTwoWayIncrementalTransform ( ) [inline]
GClasses::GTwoWayIncrementalTransform::GTwoWayIncrementalTransform ( GDomNode pNode,
GLearnerLoader ll 
) [inline]
virtual GClasses::GTwoWayIncrementalTransform::~GTwoWayIncrementalTransform ( ) [inline, virtual]

Member Function Documentation

virtual void GClasses::GTwoWayIncrementalTransform::untransform ( const double *  pIn,
double *  pOut 
) [pure virtual]

pIn is a previously transformed row, and pOut is a buffer that will hold the untransformed row. train must be called before this method is used

Implemented in GClasses::GTwoWayTransformChainer, GClasses::GPCA, GClasses::GNominalToCat, GClasses::GNormalize, GClasses::GDiscretize, and GClasses::GImputeMissingVals.

virtual GMatrix* GClasses::GTwoWayIncrementalTransform::untransformBatch ( GMatrix in) [virtual]

This assumes train was previously called, and untransforms all the rows in pIn and returns the results.

virtual void GClasses::GTwoWayIncrementalTransform::untransformToDistribution ( const double *  pIn,
GPrediction pOut 
) [pure virtual]

Similar to untransform, except it produces a distribution instead of just a vector. This method may not be implemented in all classes, so it may throw an exception.

Implemented in GClasses::GTwoWayTransformChainer, GClasses::GPCA, GClasses::GNominalToCat, GClasses::GNormalize, GClasses::GDiscretize, and GClasses::GImputeMissingVals.