knnClassify

Purpose

Predicts target classes, using a knnModel structure created by knnFit.

Format

y_hat = knnClassify(mdl, X);

Inputs

mdl
knnModel structure returned from a call to knnFit.
X
NxP matrix, the training data.

Output

y_hat
Nx1 numeric or string vector, containing the predicted classes.

See also

knnFit

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

REQUEST A FREE QUOTE

Thank you for your interest in the GAUSS family of products.

© Aptech Systems, Inc. All rights reserved.

Privacy Policy | Sitemap