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

Is there any way to export HP models scoring code?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 82
Accepted Solution

Is there any way to export HP models scoring code?

Looking at the SAS Enterprise Miner Tools Production of Score Code I see 

that the score code export node is not supported with the HP models like HP forest. I want to make sure that means there is no possible way to get be able to score a HP model in other programs besides SAS. 

 

Thanks

 


Accepted Solutions
Solution
‎12-22-2016 04:00 PM
SAS Super FREQ
Posts: 306

Re: Is there any way to export HP models scoring code?

HP Forest and HP SVM (when using active set optimization) are the only 2 HP models that do not produce SAS DATA step score code.  But the HPDMSCORECODE.sas file contains SAS code that can be used for scoring.  It uses a procedure, HP4SCORE, to score the forest model.  

 

An alternative way to score your forest model in a database is using the Analytic Store files; see this tip for more information about that:

https://communities.sas.com/t5/SAS-Communities-Library/SAS-High-Performance-Analytics-tip-5-Scoring-...

 

View solution in original post


All Replies
SAS Super FREQ
Posts: 306

Re: Is there any way to export HP models scoring code?

Can you clarify whether you are asking about creating C and Java score code (which is done in the Score node) or deploying your score code to a database using the Score Code Export node along with SAS Scoring Accelerator?

Frequent Contributor
Posts: 82

Re: Is there any way to export HP models scoring code?

Posted in reply to WendyCzika

I am not sure what the SAS Scoring Accelerator is, but I need a way to see the HP model in SAS code. 

 

i was reading this and I cant seem to find the code. Is there any way to see a coded version of the HP forest model?

https://communities.sas.com/t5/SAS-Communities-Library/Tip-How-Can-I-Apply-HP-Forest-Score-Code-to-D...

 

Which says

4.    Find a file named HPDMSCORECODE.sas located in the folder corresponding to the Score node in the EMWS workspace directory for the diagram containing your flow.  The path to this folder is in the following form:

 

SAS-Server-Directory/Project-Name/Workspaces/EMWSx/Score-node-ID/

 

 

5.    Copy the contents of the HPDMSCORECODE.sas file into the SAS Enterprise Miner Program Editor, and run the code.  The code from this file is in the correct form to score data in the database once the above librefs and macro variables have been defined.

 

 

 

Solution
‎12-22-2016 04:00 PM
SAS Super FREQ
Posts: 306

Re: Is there any way to export HP models scoring code?

HP Forest and HP SVM (when using active set optimization) are the only 2 HP models that do not produce SAS DATA step score code.  But the HPDMSCORECODE.sas file contains SAS code that can be used for scoring.  It uses a procedure, HP4SCORE, to score the forest model.  

 

An alternative way to score your forest model in a database is using the Analytic Store files; see this tip for more information about that:

https://communities.sas.com/t5/SAS-Communities-Library/SAS-High-Performance-Analytics-tip-5-Scoring-...

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 630 views
  • 0 likes
  • 2 in conversation