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


