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

Are there settings or existing SAS code to get the tree-based models to compute Akaike's Information Criterion (AIC)?

 

The target is the number of days, and is an exponential distribution.  Average Squared Error is not appropriate for comparing models that have a non-normal interval target.

 

I would like to compare the tree-based models to neural networks and GLMs in the Model Comparison node.

 

Tree based models: decision tree, random forest, gradient boosting.

 

1 ACCEPTED SOLUTION

Accepted Solutions
MikeStockstill
SAS Employee

The Akaike's Information Criterion (AIC) (Akaike, 1973,1977) uses the log likelihood function for a model with k parameters to select models, choosing the model that maximizes 2(LL — k) or the model that minimizes –2(LL + k).  The tree-based models are non-parametric (there is no k), so there are no settings in the Enterprise Miner nodes that make this computation.

If you know of a formula that gives the computation that you want for the tree-based models, and you are seeking coding suggestions for that formula, please post the formula or a link to it.

 

 

View solution in original post

1 REPLY 1
MikeStockstill
SAS Employee

The Akaike's Information Criterion (AIC) (Akaike, 1973,1977) uses the log likelihood function for a model with k parameters to select models, choosing the model that maximizes 2(LL — k) or the model that minimizes –2(LL + k).  The tree-based models are non-parametric (there is no k), so there are no settings in the Enterprise Miner nodes that make this computation.

If you know of a formula that gives the computation that you want for the tree-based models, and you are seeking coding suggestions for that formula, please post the formula or a link to it.

 

 

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 lock in 2025 pricing—just $495!

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
  • 1 reply
  • 10538 views
  • 0 likes
  • 2 in conversation