BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
munitech4u
Quartz | Level 8

How to score a new data from the random forest node in EM. Also how to account for decision node?

1 ACCEPTED SOLUTION

Accepted Solutions
WendyCzika
SAS Employee

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.

 

View solution in original post

3 REPLIES 3
WendyCzika
SAS Employee

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.

 

munitech4u
Quartz | Level 8
let me try that!
munitech4u
Quartz | Level 8
Does the scoring code, takes care of decision node preference, automatically?

sas-innovate-2024.png

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.

 

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
  • 3 replies
  • 2836 views
  • 1 like
  • 2 in conversation