perfCv

Cross-validation accuracy of given dataset and classifier

Contents

Syntax

Description

vRr=perfCv(DS, classifier, classifierOpt) returns the cross-validation recognition rate of the given dataset and classifier.

vRr=perfCv(DS, classifier, classifierOpt, 1) also plots the dataset and misclasified instances (if the dimension is 2).

[vRrOverall, tRrOverall, vRr, tRr, computedClass]=perfCv(...) returns more info about cross-validation:

Example

DS=prData('iris');
showPlot=1;
foldNum=10;
classifier='qc';
vRr=perfCv(DS, classifier, [], foldNum, showPlot);

See Also

perfCv4classifier, perfLoo.


Top page   Next: peaksFunc.m   Prev:perfCv4classifier.m