BookmarkSubscribeRSS Feed
Emjay
Obsidian | Level 7

First things first: I’m not very experienced when it comes to the Enterprise Miner, so it might be a stupid question…

 

I’m running an interactive decision tree in the Miner. The tree has only two levels and I used only three of the 30+ input variables.

 

When I look at the results-tab the tree looks fine. (So just as I created it in the interactive window.)

But when I go further and check the Score Code there are way more input variables in use than just the three from the interactive tree. (I’m not sure if it’s all of them, cause I have quite a few.)

 

I’ve tried the “Use Frozen Tree” property, but there was no change.

 

What do I have to change to get only the used variables in my score code?

4 REPLIES 4
WendyCzika
SAS Employee

The score code should represent the tree that you created in the interactive editor, as long as you didn't re-run the node without the Use Frozen Tree property checked.  So you might need to go back into the interactive editor and check that your interactive changes are still there, then when you close out of that and save changes if prompted, the score code in the results of the node should represent that tree and only contain the 3 inputs that were used for interactive splitting.

Emjay
Obsidian | Level 7

Unfortunately that’s exactly what I‘m doing.

 

So in my interactive tree I have only my three input variables. Then I save it, close it and set Frozen Tree to 'yes'. After that I run the score node and every possible variable I have is set to ‘input’ and used in the code. But I do not find an option to limit the input variables. And even if I did, I guess it wouldn’t use my parameters for the splits but its own.

WendyCzika
SAS Employee

I'm not sure why it's behaving like that for you.  When I do the same thing making a split just on 1 input, in the score code of the Score node, I see just that split.  Do you have data preprocessing nodes in the flow before the Decision Tree node like Impute or Transform Variables that you are seeing the score code for?  When you view the results of the Decision Tree node, is the tree the one that you created interactively?

Emjay
Obsidian | Level 7

I only have 'Metadata' for setting the role of all variables and 'Data Partition' where I set 100% to train (I know it's not supposed to be 100...). Then I have two trees. One quite big one and just the short one as described above. After the short one - where I see just the two levels in the results - I add the 'Score' node and there I have the issue.

 

Sounds like I have to create a new project when it's working just fine for you... (Ok, just did and the issue stays the same.)

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 4 replies
  • 1545 views
  • 0 likes
  • 2 in conversation