Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

Scoring new data from random forest node

Reply
Regular Contributor
Posts: 188

Scoring new data from random forest node

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

SAS Super FREQ
Posts: 272

Re: Scoring new data from random forest 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.

 

Regular Contributor
Posts: 188

Re: Scoring new data from random forest node

let me try that!
Regular Contributor
Posts: 188

Re: Scoring new data from random forest node

Does the scoring code, takes care of decision node preference, automatically?
Ask a Question
Discussion stats
  • 3 replies
  • 663 views
  • 1 like
  • 2 in conversation