Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Nearest Neighbors » KNN_Init

KNN_Init


Initializes the KNN classifier.

Name Type Range Description
inClassCount Integer 2 - + Number of classes
inDimensionCount Integer 1 - + Length of feature vector
outKNNModel KNNModel Initialized KNN model

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

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

Complexity Level

This filter is available on Expert Complexity Level.