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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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