BookmarkSubscribe
Choose Language Hide Translation Bar
Highlighted
asviridov0
Community Trekker

Decision Tree - how to find out leaf/node/branch

Hello,

I am building decision tree and wonder if it is possible to find out leaf/branch/node for each of my observations?

Regards,

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
phil_kay
Staff

Re: Decision Tree - how to find out leaf/node/branch

You should also try saving the leaf label and/or leaf formula. There are various options in Save Columns from the main hotspot in the partition platform.

0 Kudos
5 REPLIES 5
Steven_Moore
Super User

Re: Decision Tree - how to find out leaf/node/branch

I think you can do what you want by looking at each split leading to any leaf you desire and then setting up a data filter for your data table using those split criteria in the proper order as shown in the tree leading to the leaf.  Select the data points that have been filtered and you have the points located in that particular leaf.

Steve
0 Kudos
asviridov0
Community Trekker

Re: Decision Tree - how to find out leaf/node/branch

Thank you very much smoore2! Your answer makes sense. However, I am looking for a way to automate it. Since my tree will probably have 20 features 2.5 million rows of observations and fine tuning this tree will be very interactive process. So after each change of tree parameters, I will need to construct manual filters. It would be so much easier to see final leaf for each observation right away.

0 Kudos
Steven_Moore
Super User

Re: Decision Tree - how to find out leaf/node/branch

I kind of knew that would be your response!  Perhaps in a future version of JMP, one could click on the leaf in the final tree and the filtering and/or selection could be automatic!?!?

Steve
0 Kudos
phil_kay
Staff

Re: Decision Tree - how to find out leaf/node/branch

You should also try saving the leaf label and/or leaf formula. There are various options in Save Columns from the main hotspot in the partition platform.

0 Kudos
asviridov0
Community Trekker

Re: Decision Tree - how to find out leaf/node/branch

phil.kay, I think you answered it, thank you very much. Not sure how to mark your response as correct answer.

0 Kudos