cross validation in matlab

Feedback and error reporting for Electronics 2000 web site.
Please post any comments, suggestions, errors, omissions, broken links etc. here.
Post Reply
Posts: 3
Joined: Wed Dec 02, 2009 9:05 am

cross validation in matlab

Post by haik4096 » Thu Dec 03, 2009 8:54 am

Hello Friends

I want to know how can I use the crossvalind file included
in the Bioinformatics toolbox.
I have my dataset that was classified with a different
algorithm, I just to validate my results with 10-fold cross
validation and/or leave-one-out.

I have 5 classes and my algorithm returns the degree of
membership for each instance. Therefore, the input data to
the 10-fold cross validation are N instances and 5 classes
(not features but degrees of membership since data have been
already classified).

The crossvalind.m file calls classify.m (stats toolbox). I
can modify the classify code to get the confusion matrix,
but when I enter the data, I get this error message: The
pooled covariance matrix of TRAINING must be positive definite.

What should I do?
:?: :|

Post Reply