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

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
inKNNModelAvl.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.
outKNNModelAvl.KNNModelTrained KNN model.

See also