Electronics 2000

Electronics 2000 Forum

Topic: cross validation in matlab

Disclaimer: No warranty, express nor implied, is given regarding the accuracy of information given on this forum. No responsibility can be accepted for any inaccuracy of information given here. Views expressed are not necessarily those of Electronics 2000. If in any doubt seek professional advice.

Feedback and error reporting for Electronics 2000 web site.
Please post any comments, suggestions, errors, omissions, broken links etc. here.

cross validation in matlab

Postby 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?
:?: :|
haik4096
 
Posts: 3
Joined: Wed Dec 02, 2009 9:05 am

Return to Electronics 2000 Feedback