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,836

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

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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Tags