You are here: Start » FIL.NET » Invoke.KNN_Train
Trains KNN classifier using sample data.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void KNN_Train ( Fil.KNNModel inKNNModel, List<List<float>> inFeatures, List<int> inClasses, Fil.KNNModel outKNNModel )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inKNNModel | Fil.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 | Fil.KNNModel | Trained KNN model. |