GClasses

GClasses::GAgglomerativeTransducer Class Reference

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>

Inheritance diagram for GClasses::GAgglomerativeTransducer:
GClasses::GTransducer

List of all members.

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 GMatrixtransduceInner (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

GDistanceMetricm_pMetric
bool m_ownMetric

Detailed Description

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.


Constructor & Destructor Documentation

GClasses::GAgglomerativeTransducer::GAgglomerativeTransducer ( GRand rand)
virtual GClasses::GAgglomerativeTransducer::~GAgglomerativeTransducer ( ) [virtual]

Member Function Documentation

void GClasses::GAgglomerativeTransducer::autoTune ( GMatrix features,
GMatrix labels 
)

This model has no parameters to tune, so this method is a noop.

virtual bool GClasses::GAgglomerativeTransducer::canImplicitlyHandleContinuousLabels ( ) [inline, protected, virtual]
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.


Member Data Documentation