How to do cross validation SVM classifier

断了今生、忘了曾经 提交于 2019-12-23 04:29:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!