BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
snandiwada
Fluorite | Level 6

I am a novice learning SAS Enterprise Miner for Predictive Modeling. I am trying to learn about Decision Tree model and was wondering how you would change the primary outcome that the Tree starts with. I am looking at the PVA97NK data and when I try to run the interactive model for a binary target (0 and 1), the tree is being generated for target =0. How can I change the primary outcome to be 1 instead of 0.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JThompson
SAS Employee

Hi.  I'm one of the instructors for that class.  Either the issue is simply an "interpretation" one or I need more information about your question.  I'm thinking it may just be a misinterpretation of what the software is showing.  Enterprise Miner will by default always model the 1's given a binary target. In fact, there is not a property to change the target level being predicted.  It will always model the 1's. If it appears that certain nodes in the tree are predicting 0's, that is likely the decision prediction coming from that node.  Meaning, the subset of the data that the node in question is describing has found a subset of the data where the majority of cases are 0's, so any decision prediction based on that node is 0.  Even though in the training data, some 1's may have ended up in that node, the final prediction is 0, since that is the majority for the cases that end of there. Some nodes will predict the outcome as 1 and some nodes predict the outcome as 0.  I think you may just be looking at one of the nodes where the prediction is 0.

If this does not answer your question, then I may need more info on what you are seeing.  In this case, please provide a screen capture or a detailed description of exactly what you are seeing in the node while doing the exercise and how it is different from what you see in the notes.

View solution in original post

3 REPLIES 3
Cynthia_sas
SAS Super FREQ
Hi:
Are you working in the Applied Analytics using SAS Enterprise Miner course? If so, what Lesson and practice are you doing with the PVA97NK data?
Thanks, in advance, Cynthia
snandiwada
Fluorite | Level 6

I am in Lesson 4: decision trees

Looking at Constructing Decision Trees Interactively

TargetB is the target which is binary  and  the lesson demo shows that split is based on target = 1 but the decision tree in my project diagram shows that outcome = 0 is what is being predicted. 

JThompson
SAS Employee

Hi.  I'm one of the instructors for that class.  Either the issue is simply an "interpretation" one or I need more information about your question.  I'm thinking it may just be a misinterpretation of what the software is showing.  Enterprise Miner will by default always model the 1's given a binary target. In fact, there is not a property to change the target level being predicted.  It will always model the 1's. If it appears that certain nodes in the tree are predicting 0's, that is likely the decision prediction coming from that node.  Meaning, the subset of the data that the node in question is describing has found a subset of the data where the majority of cases are 0's, so any decision prediction based on that node is 0.  Even though in the training data, some 1's may have ended up in that node, the final prediction is 0, since that is the majority for the cases that end of there. Some nodes will predict the outcome as 1 and some nodes predict the outcome as 0.  I think you may just be looking at one of the nodes where the prediction is 0.

If this does not answer your question, then I may need more info on what you are seeing.  In this case, please provide a screen capture or a detailed description of exactly what you are seeing in the node while doing the exercise and how it is different from what you see in the notes.

 

This is a knowledge-sharing community for learners in the Academy. Find answers to your questions or post here for a reply.
To ensure your success, use these getting-started resources:

Estimating Your Study Time
Reserving Software Lab Time
Most Commonly Asked Questions
Troubleshooting Your SAS-Hadoop Training Environment

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1220 views
  • 1 like
  • 3 in conversation