<< nan_cat2bin Classification nan_confusionmat >>

NaN Toolbox >> NaN Toolbox > Classification > nan_classify

nan_classify

classifies sample data into categories

Calling Sequence

CLASS = nan_classify(sample, training, group)
CLASS = nan_classify(sample, training, group, TYPE)
[CLASS,ERR,POSTERIOR,LOGP,COEF] = nan_classify(...)

Parameters

CLASS:

contains the assigned group.

ERR:

is the classification error on the training set weighted by the

Description

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.

Examples

loadmatfile("demos/data/iris.mat");
x = meas;
y = species;
yhat = nan_classify(x,x,y);

See also

Bibliography

[1] R. Duda, P. Hart, and D. Stork, Pattern Classification, second ed.

John Wiley & Sons, 2001.

Authors

<< nan_cat2bin Classification nan_confusionmat >>