How do I determine where an item ends up in a ctree?

1 view (last 30 days)
I have written code to create a ctree out of "training" data to predict other data. I would like to know how to figure out where each of my items ends up in the ctree I created. I am doing this to decrease my Brier Score. I have already figured out how to determine the probability of each individual node.
Thanks

Answers (1)

the cyclist
the cyclist on 8 Feb 2013
I believe you should be able to use the view() command on the tree to see the "rules" for classification
>> view(ctree)
and the eval command to see the results of that tree on new data:
>> eval(ctree,newdata)

Community Treasure Hunt

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

Start Hunting!