Thread Subject: crossvalind" function in the bioinformatics toolbox:

Subject: crossvalind" function in the bioinformatics toolbox:

From: Arthur Zheng

Date: 10 Jul, 2008 22:59:08

Message: 1 of 1

For the first example of "crossvalind" function in the
bioinformatics toolbox:
       % Create a 10-fold cross-validation to compute
classification error.
       load fisheriris
       indices = crossvalind('Kfold',species,10);
       cp = classperf(species);
       for i = 1:10
           test = (indices == i); train = ~test;
           class =
classify(meas(test,:),meas(train,:),species(train,:));
           classperf(cp,class,test)
       end

Is the output of cp.CorrectRate the average of the 10-fold
cross validation or only the CorrectRate of the last fold?
If it is the avearage of the ten folds, I suggest to add one
more property of cp, that is, "the variance of the
CorrectRate". Only Mean and variance together would make a
statistical significance

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
crossvalind Arthur Zheng 10 Jul, 2008 19:00:29
classfify Arthur Zheng 10 Jul, 2008 19:00:29
bioinformatics Arthur Zheng 10 Jul, 2008 19:00:29
rssFeed for this Thread

Contact us at files@mathworks.com