Class ILKNearestNeighbor.TILKNearestNeighbor

From Mitov Wiki Doc
(Difference between revisions)
Jump to: navigation, search
(Automated Syncronization with Documentation)
 
(Automated Syncronization with Documentation)
 
(6 intermediate revisions by one user not shown)
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 28: Line 28:
 
=== C# (.NET): ===
 
=== C# (.NET): ===
 
<code>
 
<code>
'''public ref class''' TILKNearestNeighbor : [[Class ILBasicClassifier.TILTrainableBasicClassifier|Mitov.IntelligenceLab.TrainableBasicClassifier]]
+
'''public ref class''' KNearestNeighbor : [[Class ILBasicClassifier.TILTrainableBasicClassifier|Mitov.IntelligenceLab.TrainableBasicClassifier]]
 
</code>
 
</code>
 
== Summary ==
 
== Summary ==
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)]]
*[[Method procedure ILKNearestNeighbor.TILKNearestNeighbor.Predict(ISLRealBuffer)|procedure Predict(AFeatures : ISLRealBuffer)]] - Gets a prediction from the classifier.
 
  
 
== 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(array;array;Boolean)|procedure Train(ATraingFeatures : array; AResposes : array; AUpdate : Boolean)]]
+
*[[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.  
 
== Pins ==
 
*[[Pin ILBasicClassifier.TILSimpleBasicClassifier.InputPin|InputPin]] - The features input pin of the component.
 
  
 
[[Category:Components]][[Category:Classes]]
 
[[Category:Components]][[Category:Classes]]

Latest revision as of 00:32, 26 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.

BIGILKNearestNeighbor.gif ILKNearestNeighbor.gif NETILKNearestNeighbor.gif

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 KNearestNeighbor : Mitov.IntelligenceLab.TrainableBasicClassifier

Summary

K Nearest Neighbor classifier.

Description

Defines K Nearest Neighbor classifier.


Diagram:

ILKNearestNeighbor Preview.png


Example:

KNearestNeighborDemo.png

Properties

Published

Methods

Public

Events

From TILTrainableBasicClassifier

Methods

Public

Pins

From TILBasicClassifier

Pins

From TILSimpleBasicClassifierTemplate

Properties

Published

Methods

Public

Pins

From TILSimpleBasicClassifier

Properties

Published

Methods

Public

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox