BookmarkSubscribeRSS Feed
Scott86
Obsidian | Level 7

Hi Everyone,

 

I am creating a decision tree and I want it to be only 3 nodes deep. I am controlling the splitting by using the leaf size under the Node area for Decision tree models, I am setting it to 200 (that is a minimum of 200 obs per leaf). The issue is the target I am splitting up which is binary (1 and 2) has a low volume. The target 2 only account for 0.44% of the observations. This is creating difficulty in the tree splitting. When I set the leaf size to 200 it goes to deep but when I increase it the tree does not split at all. I have tried changing the Significance level but it has no affect.

 

Nominal target Criterion is ProbChisq and significance level is 0.2.

 

Any help on how to tune the Hyper-Parameters to prune the model would be great.

 

Thanks

Scott

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

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
  • 1305 views
  • 0 likes
  • 1 in conversation