GClasses
|
Generates data by computing the product of each pair of attributes. This is useful for augmenting data. More...
#include <GTransform.h>
Public Member Functions | |
GPairProduct (size_t nMaxDims) | |
GPairProduct (GDomNode *pNode, GLearnerLoader &ll) | |
Load from a DOM. | |
virtual | ~GPairProduct () |
virtual GDomNode * | serialize (GDom *pDoc) |
Marshal this object into a DOM, which can then be converted to a variety of serial formats. | |
virtual void | train (GMatrix &data) |
See the comment for GIncrementalTransform::train. | |
virtual void | transform (const double *pIn, double *pOut) |
See the comment for GIncrementalTransform::transform. | |
Protected Attributes | |
size_t | m_maxDims |
Generates data by computing the product of each pair of attributes. This is useful for augmenting data.
GClasses::GPairProduct::GPairProduct | ( | size_t | nMaxDims | ) |
GClasses::GPairProduct::GPairProduct | ( | GDomNode * | pNode, |
GLearnerLoader & | ll | ||
) |
Load from a DOM.
virtual GClasses::GPairProduct::~GPairProduct | ( | ) | [virtual] |
Marshal this object into a DOM, which can then be converted to a variety of serial formats.
Implements GClasses::GIncrementalTransform.
virtual void GClasses::GPairProduct::train | ( | GMatrix & | data | ) | [virtual] |
See the comment for GIncrementalTransform::train.
Implements GClasses::GIncrementalTransform.
virtual void GClasses::GPairProduct::transform | ( | const double * | pIn, |
double * | pOut | ||
) | [virtual] |
See the comment for GIncrementalTransform::transform.
Implements GClasses::GIncrementalTransform.
size_t GClasses::GPairProduct::m_maxDims [protected] |