Class ILKNearestNeighbor.TILKNearestNeighbor
From Mitov Wiki Doc
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: IntelligenceLabPkg
Unit: ILKNearestNeighbor
Inherits: TILTrainableBasicClassifier
Contents |
Syntax
Delphi:
type TILKNearestNeighbor = class( TILTrainableBasicClassifier )
C++ Builder:
class TILKNearestNeighbor : public TILTrainableBasicClassifier
Visual C++ (MFC):
class CTILKNearestNeighbor : public CTILTrainableBasicClassifier
C# (.NET):
public ref class TILKNearestNeighbor : Mitov.IntelligenceLab.TrainableBasicClassifier
Summary
K Nearest Neighbor classifier.
Description
Defines K Nearest Neighbor classifier.
Example:
Properties
Published
- K - Specifies the K value for the K Nearest Neighbor.
Methods
Public
- procedure Clear() - Clears the training of the classifier.
- procedure Train(ATraingFeatures : ISLRealBufferArray; AResposes : ISLRealBuffer; AUpdate : Boolean)
- procedure Predict(AFeatures : ISLRealBuffer) - Gets a prediction from the classifier.
Events
- OnResult - On prediction result event.
From TILTrainableBasicClassifier
Methods
Public
- procedure Train(AData : IILTrainingDataArray; AUpdate : Boolean) - Trains the classifier.
- procedure Train(ATraingFeatures : array; AResposes : array; AUpdate : Boolean)
- procedure Train(ATraingFeatures : ISLRealBufferArray; AResposes : ISLRealBuffer; AUpdate : Boolean) - Trains the classifier.
Pins
- TrainingInputPin - The training input pin of the component.
From TILBasicClassifier
Pins
- ClassOutputPin - The class Output Pin of the classifier.
From TILSimpleBasicClassifier
Properties
Published
- SaveTraining - Specifies if the training data should be saved in the project.
Methods
Public
- procedure SaveToFile(AFileName : String) - Saves the training to a file.
- procedure LoadFromFile(AFileName : String) - Loads the training from a file.
- procedure SaveToStream(AStream : TStream) - Saves the training to a stream.
- procedure LoadFromStream(AStream : TStream) - Loads the training from a stream.
Pins
- InputPin - The features input pin of the component.