I want to derive a scoring code (i.e. from a cluster that I'd learned before) and assign this new variable an input role or filter role.
So I try to insert a sas code node and run the proc astore that works fine in SAS Studio.
But how can I achieve that the new variable shows up in the training data set?
/* SAS code */
proc astore;
score data=&dm_data
rstore=MODELS._654S34YEIM3X7NLUBHJ8PQRK2_AST
out=&dm_data_outmodel;
run;
@WendyCzika I have tried your solution at https://communities.sas.com/t5/SAS-Data-Mining-and-Machine/How-to-use-the-scoring-code-from-gradient...
by inserting the %inc line.
%inc '/caslibs/danalytics/svd.sas';
But it doesn't work as expected due to the score file type giving me an error.
So I tried the following but without success as well.
proc astore;
score data=&dm_data
rstore=MODELS._654S34YEIM3X7NLUBHJ8PQRK2_AST
out=&dm_data_caslib.test;
run;
filename delta "&dm_file_deltacode";
data _null_;
file delta;
merge &dm_data &dm_data_caslib.test(keep= _SVDDDISTANCE_ bastidor origin);
by origin bastidor;
put "if NAME='_SVDDDISTANCE_' then do; ROLE='INPUT'; LEVEL='INTERVAL'; end;";
run;
filename delta;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.