BookmarkSubscribeRSS Feed

How to color leaves in the Tree Diagram of the Decision Tree node in SAS Model Studio by a statistic

Started ‎09-18-2020 by
Modified ‎05-07-2019 by
Views 2,445

Question

 

97403_banner_Asked&Answered_aqua.pngHow can I color the leaves of the tree in the Tree Diagram in the results of the Decision Tree node in Model Studio by node purity (probability of event) or correct classification proportion?

Answer

By default, for a class target, the leaves of the tree in the Tree Diagram display an embedded histogram of the target level percentages (first image).  To have the leaves instead colored by either the probability of event (purity) or the proportion correctly classified, you can un-check the property “Display embedded bar charts in tree diagram” under Tree Diagram Options in the Decision Tree node.  The leaves can then be colored by the selection in the “Class target node color” property as in the second image.

 

 

TreeEmbedded.PNG

 

 

 

TreeNEmbedded.PNG

Version history
Last update:
‎05-07-2019 02:16 PM
Updated by:
Contributors

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags