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