Cross Validation

Hello,
Can anyone please explain the difference between usage of crossval and crossvalind function? I understand that both are used for cross validation. But I'm confused which one to use. Will both produce same result?
Thanks, Rohit

 採用された回答

Wayne King
Wayne King 2011 年 12 月 29 日

0 投票

crossvalind generates the indices that you can use for a general K-fold cross validation and enables you to select the training and test data
crossval actually preforms a 10-fold cross validation where you input a function handle

1 件のコメント

rohit
rohit 2011 年 12 月 29 日
Can you please provide a basic example code of crossval with svm? I have overall values of 7 features for 50 entries.
Also at present I'm trying to work it out with the code http://pastebin.com/sTRSy2q4. Is this the right way? I mean this tells me the final performance of my classifier, or do I need to do any more steps?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

質問済み:

2011 年 12 月 29 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by