BookmarkSubscribeRSS Feed
statman123
Calcite | Level 5

hello

 

Im running continuous Response (y) models in EM using Decision tree, NN, Reg

 

I need to compare the mean absolute error (mae) from another system....I cant find the mae in the model comparison output

 

how can I easily get that from the neural network data set since that is the winning model

 

thanks

 

george

1 REPLY 1
WendyCzika
SAS Employee

Since it looks like EM doesn't calculate that measure, you could do the following in a SAS Code node after the Model Comparison node (not sure if this is the best way, but I think it should work):

 

data mae;
   set &em_import_data end=last; /* you can use another partition here: &em_import_validate or &em_import_test */
   retain sae nobs 0;
   sae + abs(R_target); /* R_target is the residual.  Put the name of your target in for target */
   nobs + 1;
   if last then do;
      mae = sae / nobs;
      output;
   end;
run;
 
proc print data=mae; 
run;

 

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