Class ILKNearestNeighbor.TILKNearestNeighbor
From Mitov Wiki Doc
(Difference between revisions)
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
||
Line 16: | Line 16: | ||
=== Delphi: === | === Delphi: === | ||
<code> | <code> | ||
− | '''type''' TILKNearestNeighbor = '''class'''( [[Class ILBasicClassifier.TILTrainableBasicClassifier|TILTrainableBasicClassifier]] ) | + | '''type''' TILKNearestNeighbor = '''class'''( [[Class ILBasicClassifier.TILTrainableBasicClassifier|TILTrainableBasicClassifier, TILKNearestNeighborResult]] ) |
</code> | </code> | ||
=== C++ Builder: === | === C++ Builder: === | ||
Line 35: | Line 35: | ||
== Description == | == Description == | ||
Defines [[Property ILKNearestNeighbor.TILKNearestNeighbor.K|K]] Nearest Neighbor classifier. | Defines [[Property ILKNearestNeighbor.TILKNearestNeighbor.K|K]] Nearest Neighbor classifier. | ||
+ | |||
+ | |||
+ | |||
+ | <b>Diagram:</b> | ||
+ | |||
+ | [[Image:ILKNearestNeighbor_Preview.png]] | ||
Line 52: | Line 58: | ||
*[[Method procedure ILKNearestNeighbor.TILKNearestNeighbor.Clear()|procedure Clear()]] - Clears the training of the classifier. | *[[Method procedure ILKNearestNeighbor.TILKNearestNeighbor.Clear()|procedure Clear()]] - Clears the training of the classifier. | ||
*[[Method procedure ILKNearestNeighbor.TILKNearestNeighbor.Train(ISLRealBufferArray;ISLRealBuffer;Boolean)|procedure Train(ATraingFeatures : ISLRealBufferArray; AResposes : ISLRealBuffer; AUpdate : Boolean)]] | *[[Method procedure ILKNearestNeighbor.TILKNearestNeighbor.Train(ISLRealBufferArray;ISLRealBuffer;Boolean)|procedure Train(ATraingFeatures : ISLRealBufferArray; AResposes : ISLRealBuffer; AUpdate : Boolean)]] | ||
− | |||
== Events == | == Events == | ||
*[[Event ILKNearestNeighbor.TILKNearestNeighbor.OnResult|OnResult]] - On prediction result event. | *[[Event ILKNearestNeighbor.TILKNearestNeighbor.OnResult|OnResult]] - On prediction result event. | ||
+ | *[[Event ILKNearestNeighbor.TILKNearestNeighbor.OnCustomDistance|OnCustomDistance]] - On calculate custom distance event. | ||
== From [[Class ILBasicClassifier.TILTrainableBasicClassifier|TILTrainableBasicClassifier]] == | == From [[Class ILBasicClassifier.TILTrainableBasicClassifier|TILTrainableBasicClassifier]] == | ||
Line 63: | Line 69: | ||
=== Public === | === Public === | ||
*[[Method procedure ILBasicClassifier.TILTrainableBasicClassifier.Train(IILTrainingDataArray;Boolean)|procedure Train(AData : IILTrainingDataArray; AUpdate : Boolean)]] - Trains the classifier. | *[[Method procedure ILBasicClassifier.TILTrainableBasicClassifier.Train(IILTrainingDataArray;Boolean)|procedure Train(AData : IILTrainingDataArray; AUpdate : Boolean)]] - Trains the classifier. | ||
− | *[[Method procedure ILBasicClassifier.TILTrainableBasicClassifier.Train( | + | *[[Method procedure ILBasicClassifier.TILTrainableBasicClassifier.Train(ISLRealBuffer;Real;Boolean)|procedure Train(ATraingFeatures : ISLRealBuffer; AResposes : Real; AUpdate : Boolean)]] |
*[[Method procedure ILBasicClassifier.TILTrainableBasicClassifier.Train(ISLRealBufferArray;ISLRealBuffer;Boolean)|procedure Train(ATraingFeatures : ISLRealBufferArray; AResposes : ISLRealBuffer; AUpdate : Boolean)]] - Trains the classifier. | *[[Method procedure ILBasicClassifier.TILTrainableBasicClassifier.Train(ISLRealBufferArray;ISLRealBuffer;Boolean)|procedure Train(ATraingFeatures : ISLRealBufferArray; AResposes : ISLRealBuffer; AUpdate : Boolean)]] - Trains the classifier. | ||
Line 73: | Line 79: | ||
== Pins == | == Pins == | ||
*[[Pin ILBasicClassifier.TILBasicClassifier.ClassOutputPin|ClassOutputPin]] - The class Output Pin of the classifier. | *[[Pin ILBasicClassifier.TILBasicClassifier.ClassOutputPin|ClassOutputPin]] - The class Output Pin of the classifier. | ||
+ | |||
+ | == From [[Class ILBasicClassifier.TILSimpleBasicClassifierTemplate|TILSimpleBasicClassifierTemplate]] == | ||
+ | |||
+ | == Properties == | ||
+ | |||
+ | === Published === | ||
+ | *[[Property ILBasicClassifier.TILSimpleBasicClassifierTemplate.SynchronizeType|SynchronizeType]] - Specifies the type of thread buffer synchronization. | ||
+ | *[[Property ILBasicClassifier.TILSimpleBasicClassifierTemplate.Threading|Threading]] - Specifies the desired threading settings for the filtering. | ||
+ | |||
+ | == Methods == | ||
+ | |||
+ | === Public === | ||
+ | *[[Method procedure ILBasicClassifier.TILSimpleBasicClassifierTemplate.Predict(ISLRealBuffer)|procedure Predict(AFeatures : ISLRealBuffer)]] - Gets a prediction from the classifier. | ||
+ | |||
+ | == Pins == | ||
+ | *[[Pin ILBasicClassifier.TILSimpleBasicClassifierTemplate.InputPin|InputPin]] - The features input pin of the component. | ||
== From [[Class ILBasicClassifier.TILSimpleBasicClassifier|TILSimpleBasicClassifier]] == | == From [[Class ILBasicClassifier.TILSimpleBasicClassifier|TILSimpleBasicClassifier]] == | ||
Line 88: | Line 110: | ||
*[[Method procedure ILBasicClassifier.TILSimpleBasicClassifier.SaveToStream(TStream)|procedure SaveToStream(AStream : TStream)]] - Saves the training to a stream. | *[[Method procedure ILBasicClassifier.TILSimpleBasicClassifier.SaveToStream(TStream)|procedure SaveToStream(AStream : TStream)]] - Saves the training to a stream. | ||
*[[Method procedure ILBasicClassifier.TILSimpleBasicClassifier.LoadFromStream(TStream)|procedure LoadFromStream(AStream : TStream)]] - Loads the training from a stream. | *[[Method procedure ILBasicClassifier.TILSimpleBasicClassifier.LoadFromStream(TStream)|procedure LoadFromStream(AStream : TStream)]] - Loads the training from a stream. | ||
− | |||
− | |||
− | |||
[[Category:Components]][[Category:Classes]] | [[Category:Components]][[Category:Classes]] |
Revision as of 20:30, 10 June 2013
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, TILKNearestNeighborResult )
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.
Diagram:
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)
Events
- OnResult - On prediction result event.
- OnCustomDistance - On calculate custom distance event.
From TILTrainableBasicClassifier
Methods
Public
- procedure Train(AData : IILTrainingDataArray; AUpdate : Boolean) - Trains the classifier.
- procedure Train(ATraingFeatures : ISLRealBuffer; AResposes : Real; 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 TILSimpleBasicClassifierTemplate
Properties
Published
- SynchronizeType - Specifies the type of thread buffer synchronization.
- Threading - Specifies the desired threading settings for the filtering.
Methods
Public
- procedure Predict(AFeatures : ISLRealBuffer) - Gets a prediction from the classifier.
Pins
- InputPin - The features input pin of the component.
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.