GClasses
|
This is a semi-supervised agglomerative clusterer. It can only handle one output, and it must be nominal. All inputs must be continuous. Also, it assumes that all output values are represented in the training set. More...
#include <GCluster.h>
Public Member Functions | |
GAgglomerativeTransducer (GRand &rand) | |
virtual | ~GAgglomerativeTransducer () |
void | setMetric (GDistanceMetric *pMetric, bool own) |
Specify the metric to use to determine the distance between points. If own is true, then this object will take care to delete pMetric. | |
void | autoTune (GMatrix &features, GMatrix &labels) |
This model has no parameters to tune, so this method is a noop. | |
Protected Member Functions | |
virtual GMatrix * | transduceInner (GMatrix &features1, GMatrix &labels1, GMatrix &features2) |
See the comment for GTransducer::transduce. Throws if labels1 has more than one column. | |
virtual bool | canImplicitlyHandleContinuousLabels () |
See the comment for GTransducer::canImplicitlyHandleContinuousLabels. | |
Protected Attributes | |
GDistanceMetric * | m_pMetric |
bool | m_ownMetric |
This is a semi-supervised agglomerative clusterer. It can only handle one output, and it must be nominal. All inputs must be continuous. Also, it assumes that all output values are represented in the training set.
GClasses::GAgglomerativeTransducer::GAgglomerativeTransducer | ( | GRand & | rand | ) |
virtual GClasses::GAgglomerativeTransducer::~GAgglomerativeTransducer | ( | ) | [virtual] |
This model has no parameters to tune, so this method is a noop.
virtual bool GClasses::GAgglomerativeTransducer::canImplicitlyHandleContinuousLabels | ( | ) | [inline, protected, virtual] |
See the comment for GTransducer::canImplicitlyHandleContinuousLabels.
Reimplemented from GClasses::GTransducer.
void GClasses::GAgglomerativeTransducer::setMetric | ( | GDistanceMetric * | pMetric, |
bool | own | ||
) |
Specify the metric to use to determine the distance between points. If own is true, then this object will take care to delete pMetric.
virtual GMatrix* GClasses::GAgglomerativeTransducer::transduceInner | ( | GMatrix & | features1, |
GMatrix & | labels1, | ||
GMatrix & | features2 | ||
) | [protected, virtual] |
See the comment for GTransducer::transduce. Throws if labels1 has more than one column.
Implements GClasses::GTransducer.
bool GClasses::GAgglomerativeTransducer::m_ownMetric [protected] |