You are here: Start » AVL.NET » AVL.KNN_Init(int, int, AvlNet.KNNModel)

AVL.KNN_Init(int, int, AvlNet.KNNModel)

Initializes the KNN classifier.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void KNN_Init(
	int inClassCount,
	int inDimensionCount,
	out AvlNet.KNNModel outKNNModel
)

Parameters

inClassCount
Type: System.Int32
Number of classes
inDimensionCount
Type: System.Int32
Length of feature vector
outKNNModel
Type: AvlNet.KNNModel
Initialized KNN model

Errors

Error type Description
DomainError At least two classes must be provided.
DomainError Feature vector should have at least one dimension.

See also