GClasses
|
An instance-based transduction algorithm. More...
#include <GKNN.h>
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 GMatrix * | transduceInner (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 |
An instance-based transduction algorithm.
GClasses::GNeighborTransducer::GNeighborTransducer | ( | GRand & | rand | ) |
General-purpose constructor.
Uses cross-validation to find a set of parameters that works well with the provided data.
virtual bool GClasses::GNeighborTransducer::canImplicitlyHandleContinuousLabels | ( | ) | [inline, protected, virtual] |
See the comment for GTransducer::canImplicitlyHandleContinuousLabels.
Reimplemented from GClasses::GTransducer.
virtual bool GClasses::GNeighborTransducer::canImplicitlyHandleNominalFeatures | ( | ) | [inline, protected, virtual] |
See the comment for GTransducer::canImplicitlyHandleNominalFeatures.
Reimplemented from GClasses::GTransducer.
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.
size_t GClasses::GNeighborTransducer::m_friendCount [protected] |