You are here:
Start »
AVL.NET »
AVL.KNN_Init Method
AVL.KNN_Init Method
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
|
Name |
Type |
Range |
Default |
Description |
| inClassCount | int | <2, +INF> | | Number of classes. |
| inDimensionCount | int | <1, +INF> | | Length of feature vector. |
| outKNNModel | 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