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

See also