You are here: Start » FIL.NET » Invoke.KNN_Train

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
inKNNModelFil.KNNModelInitialized KNN model.
inFeaturesSystem.Collections.Generic.List<System.Collections.Generic.List<float>>Array of features array.
inClassesSystem.Collections.Generic.List<int>Array of classes corresponding to feature array elements.
outKNNModelFil.KNNModelTrained KNN model.

See also