Had to do little bit of coding but got it anyway. :)
How to access the variable range for leaf node in decision tree
3 views (last 30 days)
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.
More Answers (1)
Madhur on 13 Jan 2015
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 ?