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.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy