How to score a new data from the random forest node in EM. Also how to account for decision node?
Where is the data you are trying to score?
If it's in a database, see this tip: https://communities.sas.com/t5/SAS-Communities-Library/Tip-How-Can-I-Apply-HP-Forest-Score-Code-to-D...
If the data is in a SAS data set and your flow doesn't contain score code from any other nodes, you can do the following in a SAS Code node, SAS session, or SAS Enterprise Guide for the flow IDS -> HP Forest -> Score:
%let hpfst_score_input = sampsio.dmagecr;
%let em_score_output = work.myscoredata;
< paste the code from the Score node >
run;
hpfst_score_input = is the data set that you want to score
em_score_output = is the data set that you want to create (WORK. is only for example)
be sure to add a RUN; at the end - not having it gives an error.
Where is the data you are trying to score?
If it's in a database, see this tip: https://communities.sas.com/t5/SAS-Communities-Library/Tip-How-Can-I-Apply-HP-Forest-Score-Code-to-D...
If the data is in a SAS data set and your flow doesn't contain score code from any other nodes, you can do the following in a SAS Code node, SAS session, or SAS Enterprise Guide for the flow IDS -> HP Forest -> Score:
%let hpfst_score_input = sampsio.dmagecr;
%let em_score_output = work.myscoredata;
< paste the code from the Score node >
run;
hpfst_score_input = is the data set that you want to score
em_score_output = is the data set that you want to create (WORK. is only for example)
be sure to add a RUN; at the end - not having it gives an error.
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.
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.