GClasses
|
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>
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 GMatrix * | untransformBatch (GMatrix &in) |
This assumes train was previously called, and untransforms all the rows in pIn and returns the results. |
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.
GClasses::GTwoWayIncrementalTransform::GTwoWayIncrementalTransform | ( | ) | [inline] |
GClasses::GTwoWayIncrementalTransform::GTwoWayIncrementalTransform | ( | GDomNode * | pNode, |
GLearnerLoader & | ll | ||
) | [inline] |
virtual GClasses::GTwoWayIncrementalTransform::~GTwoWayIncrementalTransform | ( | ) | [inline, virtual] |
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.
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.