Crossvalidation of Classification Trees?

조회 수: 1 (최근 30일)
Ines
Ines 2012년 5월 21일
Hi there, I want to perform a crossvalidation of a decision tree built with the CART algorithm, i.e. I want to randomly take out 20% (or 10% which is better?) from my dataset for the evaluation and thus build the tree with the residual 80% (or 90%).Is there a function in matlab that does this for me? I found "crossval" but I am not sure how the classification is done (is it also done according to CART?) Also, what does 10 fold cross-validation mean? Do I have to manually create a training and a test-data set if I want to use crossval?

답변 (1개)

Richard Willey
Richard Willey 2012년 5월 21일
I recommend that you look at the following example from the file exchange

카테고리

Help CenterFile Exchange에서 Classification Trees에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by