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?

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 3625 views
  • 1 like
  • 2 in conversation