GClasses

GClasses::GNeighborTransducer Class Reference

An instance-based transduction algorithm. More...

#include <GKNN.h>

Inheritance diagram for GClasses::GNeighborTransducer:
GClasses::GTransducer

List of all members.

Public Member Functions

 GNeighborTransducer (GRand &rand)
 General-purpose constructor.
size_t neighbors ()
 Returns the number of neighbors.
void setNeighbors (size_t k)
 Specify the number of neighbors to use with each point.
void autoTune (GMatrix &features, GMatrix &labels)
 Uses cross-validation to find a set of parameters that works well with the provided data.

Protected Member Functions

virtual GMatrixtransduceInner (GMatrix &features1, GMatrix &labels1, GMatrix &features2)
 See the comment for GTransducer::transduce.
virtual bool canImplicitlyHandleNominalFeatures ()
 See the comment for GTransducer::canImplicitlyHandleNominalFeatures.
virtual bool canImplicitlyHandleContinuousLabels ()
 See the comment for GTransducer::canImplicitlyHandleContinuousLabels.

Protected Attributes

size_t m_friendCount

Detailed Description

An instance-based transduction algorithm.


Constructor & Destructor Documentation

GClasses::GNeighborTransducer::GNeighborTransducer ( GRand rand)

General-purpose constructor.


Member Function Documentation

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

Uses cross-validation to find a set of parameters that works well with the provided data.

virtual bool GClasses::GNeighborTransducer::canImplicitlyHandleContinuousLabels ( ) [inline, protected, virtual]
virtual bool GClasses::GNeighborTransducer::canImplicitlyHandleNominalFeatures ( ) [inline, protected, virtual]
size_t GClasses::GNeighborTransducer::neighbors ( ) [inline]

Returns the number of neighbors.

void GClasses::GNeighborTransducer::setNeighbors ( size_t  k) [inline]

Specify the number of neighbors to use with each point.

virtual GMatrix* GClasses::GNeighborTransducer::transduceInner ( GMatrix features1,
GMatrix labels1,
GMatrix features2 
) [protected, virtual]

See the comment for GTransducer::transduce.

Implements GClasses::GTransducer.


Member Data Documentation