Too big classification tree

1 ビュー (過去 30 日間)
Radoslav Vandzura
Radoslav Vandzura 2016 年 2 月 18 日
コメント済み: MHN 2016 年 2 月 19 日
Hello All. I am trying to create classification tree in Matlab using function fitctree. I am using version of Matlab R2014b. But my tree is big and intricate. Could you advise me how should i resolve this problem? I know about MaxNumSplits but it is supported by version Matlab 2015...Thank you for your help and advices...

採用された回答

MHN
MHN 2016 年 2 月 18 日
There are many ways to do that, e.g. compare the following tree1, tree2, and tree3. It depends on your problem in hand, which one you should use.
load ionosphere
tree1 = fitctree(X,Y);
view(tree1,'mode','graph')
tree2 = prune(tree1,'level',6);
view(tree2, 'mode','graph')
tree3 = fitctree(X,Y, 'MinParentSize', 200);
view(tree3, 'mode','graph')
  1 件のコメント
MHN
MHN 2016 年 2 月 19 日
You can use pruning method by using "prune" command. Please see the following documentation to learn how it works: http://www.mathworks.com/help/stats/classregtree.prune.html

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by