I don't get this working.
In my pipeline I ran successfully a SVM and in the open sas code node I want to score with the saved astore...
I don't know where it is stored...
I thought the macro variables would help me.
Thre prior SVM saved correctly I would say.
ERROR: The file or path '_667LDN0RZS1PV45RA8U86EEK_ast.sashdat' is not available in the file system.
/* SAS code */
/* SAS code */
%let caslib=public;
libname mycaslib cas caslib=&caslib;
/************************************************************************/
/* Score data using ASTORE code generated for the SVM model */
/************************************************************************/
proc casutil;
load casdata="&dm_rstoretable..sashdat" incaslib="&dm_caslib."
casout="mine" outcaslib="&caslib.";
run;
proc astore;
score data=&dm_data out=mycaslib.scored
rstore=mycaslib.mine copyvars=(x y isInside);
run;
proc surveyselect data=mycaslib.scored out=mycaslib.scored2 n=10000;
run;
proc sql;
select * from mycaslib.scored2(obs=100);
quit;
ods graphics on;
proc sgplot data=mycaslib.scored2;
styleattrs datacontrastcolors=(red green);
scatter x=x y=y / group=I_isInside markerattrs=(size=4 symbol=circlefilled) dataskin=pressed;
run;
Update.
It works when I hard-code the astore table name.
But I would like to replace the _AHB0Q0WSA76M8CJR9N53GX1JX_ast
by a macro-variable. Which one?
/* SAS code */
%let caslib=public;
libname mycaslib cas caslib=&caslib;
/************************************************************************/
/* Score data using ASTORE code generated for the SVM model */
/************************************************************************/
proc astore;
score data=&dm_data out=mycaslib.scored
rstore=&dm_datalib.._AHB0Q0WSA76M8CJR9N53GX1JX_ast copyvars=(x y isInside);
run;
proc surveyselect data=mycaslib.scored out=mycaslib.scored2 n=10000;
run;
proc sql;
select * from mycaslib.scored2(obs=100);
quit;
ods graphics on;
proc sgplot data=mycaslib.scored2;
styleattrs datacontrastcolors=(red green);
scatter x=x y=y / group=I_isInside markerattrs=(size=4 symbol=circlefilled) dataskin=pressed;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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 save with the early bird rate—just $795!
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.