BookmarkSubscribeRSS Feed
znhnm
Quartz | Level 8

Hi, I have a log reg model on VA. I would like to do scoring on unseen data. I think Export Model is the right option to follow but how can I use the code hat appears when cilcking on that option? I copied and pasted it to SAS Studio, where I created a cas conection. When I run it, I get so many errors. Do I need any alterations/additions on the score cdeo? What is the step by step to see an output table with predictions?

 

znhnm_0-1681256334750.png

 

1 REPLY 1
acordes
Rhodochrosite | Level 12

/* for models that create a readable score file */

 

save the export model output to a txt file accesible from sas studio.

then work with %include.

 

FILENAME REFFILE FILESRVC FOLDERPATH='/Projects/SAS Viya training VWFS/'  FILENAME='_2B3_aux lin_reg_sales_res.txt';
data casuser.rema_scored;
set casuser.rema;
%include reffile;
run;

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 727 views
  • 1 like
  • 2 in conversation