classifies sample data into categories
CLASS = nan_classify(sample, training, group) CLASS = nan_classify(sample, training, group, TYPE) [CLASS,ERR,POSTERIOR,LOGP,COEF] = nan_classify(...)
contains the assigned group.
is the classification error on the training set weighted by the
The same classifier as in TRAIN_SC are supported.
ATTENTION: no cross-validation is applied, therefore the classification error is too optimistic (overfitting). Use XVAL instead to obtain cross-validated performance.
loadmatfile("demos/data/iris.mat"); x = meas; y = species; yhat = nan_classify(x,x,y); | ![]() | ![]() |
[1] R. Duda, P. Hart, and D. Stork, Pattern Classification, second ed.
John Wiley & Sons, 2001.