You are here: Start » AVL.NET » AVS.KNN_Train Method
AVS.KNN_Train Method
Trains KNN classifier using sample data.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void KNN_Train ( AvlNet.KNNModel inKNNModel, IList<IList<float>> inFeatures, IList<int> inClasses, AvlNet.KNNModel outKNNModel )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inKNNModel | AvlNet.KNNModel | Initialized KNN model. | ||
![]() | inFeatures | System.Collections.Generic.IList<System.Collections.Generic.IList<float>> | Array of features array. | ||
![]() | inClasses | System.Collections.Generic.IList<int> | Array of classes corresponding to feature array elements. | ||
![]() | outKNNModel | AvlNet.KNNModel | Trained KNN model. |