How to access the variable range for leaf node in decision tree

1 回表示 (過去 30 日間)
Nirmal
Nirmal 2012 年 7 月 5 日
I want to access the variable range for each of the leaf node for the decision tree that is created by using classregtree. I can see the variable range in the figure generated by view(), but I want to access the range from the code.
Thank you!

採用された回答

Nirmal
Nirmal 2012 年 7 月 5 日
Had to do little bit of coding but got it anyway. :)
  1 件のコメント
Greg
Greg 2015 年 3 月 4 日
Would you be able to provide your code, or at least explain the approach? I would also like to obtain the samples at each node.
Thank you,
Greg

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

その他の回答 (1 件)

Madhur
Madhur 2015 年 1 月 13 日
I am trying to access the indices of samples in the training data which belong to a particular leaf node in the tree. I suspect these two problems might be related. Can you shed some light on how did you obtain the variable range for leaf nodes using code ?
Thanks Madhur
  1 件のコメント
Vasileios Sevetlidis
Vasileios Sevetlidis 2015 年 9 月 26 日
Did you find a way to make it possible through code? I am interested in using the leaf values as well.
thank you!

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by