TreeBagger: How do I view entire tree or the list of logical steps? (Not same as with fitctree)

1 回表示 (過去 30 日間)
Hi, TreeBagger: How do I view entire tree or the list of logical steps? (Not same as with fitctree)
I used: t=TreeBagger(30,x,y,'OOBPred','On','Method','Classification','MinLeaf',10)
per an answer in the history, I used: view(t.Trees{1:30}) to see a list of logical steps, but the list does not appear to summarize 30 trees, but rather just 1.
I am interested in seeing: * Graph of all trees together - possible? * List of logical steps for entire series of trees
Point is I want to code an algorithm that matches the tree, but I need to see the steps.
Thanks!

採用された回答

Ilya
Ilya 2014 年 10 月 6 日
Use a loop:
for n=1:30
view(t.Trees{n});
end
  2 件のコメント
Justin
Justin 2014 年 10 月 6 日
Great! Can't try it at moment, but eager to - Thanks llya!
hartanto
hartanto 2018 年 6 月 15 日
Yes, it works perfect.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeClassification Ensembles についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by