BookmarkSubscribeRSS Feed
Kanyange
Fluorite | Level 6


Hi All,

I have built a logistic regression model on the training dataset, then score my validation dataset. I have calculated the Mean Absolute Percentage Error  between Actual and Predicted (Table below) Is there any rule to say if my MAPE is > 10% for example, the model doesn't generalize well, so need to improve the model or build a new one? I would like to set up a rule. Your help would be much appreciated,

Many Thanks

Decile GroupActualPredictedAbsolute MAPE
(Mean Absolute Percentage Error)
105886012%
94944971%
84724426%
74024030%
63923745%
53273476%
43033205%
33162976%
22672712%
12322424%
1 REPLY 1
SteveDenham
Jade | Level 19

Any rule is going to depend on the relative cost of making an error.  In some fields, an error >10% may be a good cutpoint, but in others, it may need to be substantially less.  Also, percentages are notorious for being scale dependent.  In your example, a deviation of 13 with a denominator of 588, leads to a percentage error of 2%.  However, suppose your model predicted a deviation of only 1.3 (much better), but the denominator was only 5.88.  Now the percentage error is 22%, even though the absolute prediction is a magnitude more precise.

That probably doesn't answer your question of HOW to set a cutpoint in EM, but it is something to consider when the question is put forward.

Steve Denham

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1388 views
  • 0 likes
  • 2 in conversation