问题
I want to perform a decoding by applying an SVM classifier to a data matirx S, the size of which is 1089*43093,and the prediction accuracy of the labels, denoted as r, is calculated based on a 11-fold cross-validation classification procedure.The 11 fold cross-validation is based on the data matrix S, which is separated into the training and testing data sets for classification. Specifically, this cross-validation is only for calculating the prediction accuracy r. Can anyone give me some suggestion to do this? Thanks a lot!
回答1:
To carry out SVM classification, use libsvm.
A good tutorial to start would be: https://sites.google.com/site/kittipat/libsvm_matlab
Matlab code for reference on cross validation:
Example of 10-fold SVM classification in MATLAB
Retraining after Cross Validation with libsvm
Installing LibSVM on MATLAB: http://www.youtube.com/watch?v=Wz_4h_bH7-c
来源:https://stackoverflow.com/questions/25219140/how-to-do-cross-validation-svm-classifier