BookmarkSubscribeRSS Feed
Livia_L
Calcite | Level 5


I have a data set with a binary target where only 1.3% of the members are marked as 1, while 98.7% are marked as 0, and I need to run a decision tree on that set. So, I tried two ways of doing that:

 

1) I created a simple random sample on SAS with 30% of the members marked as 1 and 70% marked as 0, and also created a "weight" variable on the data set, where the weight of the members marked as 1 was 1 and the weight of the others was 22 or something like that. Then, when defining my data source on SAS Miner, I assigned the frequency role to my weight variable. I tried to run the decision tree on that set, but it only returned one node

 

2) I read the Decisions Node Example from this page https://documentation.sas.com/?docsetId=emref&docsetTarget=p0ak10c0ywr8mrn1an7tum03sp7g.htm&docsetVe... and tried again, following the instructions. I set the "Decisions", and then connected it to the "Decision Tree", and on Train Properties, I defined Import Tree Model as Yes, runned the tree, and got an error

 

What I'm doing wrong?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 704 views
  • 0 likes
  • 1 in conversation