<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scoring PROC HPForest in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307639#M4609</link>
    <description>&lt;P&gt;Actually you can't get SAS Data step, C, Java, or PMML score code for HP Forest models. &amp;nbsp;You need to use either the HP4SCORE or ASTORE procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This tip has information about scoring with PROC ASTORE:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-High-Performance-Analytics-tip-5-Scoring-with-Analytic-Store/ta-p/253544" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-High-Performance-Analytics-tip-5-Scoring-with-Analytic-Store/ta-p/253544&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you are trying to score data in a database, this tip walks through how to use the score code (with HP4SCORE) to score distributed data: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Tip-How-Can-I-Apply-HP-Forest-Score-Code-to-Distributed-Data/ta-p/221493" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Tip-How-Can-I-Apply-HP-Forest-Score-Code-to-Distributed-Data/ta-p/221493&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 14:05:36 GMT</pubDate>
    <dc:creator>WendyCzika</dc:creator>
    <dc:date>2016-10-27T14:05:36Z</dc:date>
    <item>
      <title>Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307344#M4602</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I've created a small&amp;nbsp;model using Proc HPFOREST and scored&amp;nbsp;using HP4SCORE (code below).&lt;/P&gt;&lt;P&gt;Is there anyway I can&amp;nbsp;export the&amp;nbsp;Random Forest SAS code with actual model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to implement this model in a platform other than SAS and as such I need the SAS code&amp;nbsp;for model itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Marcelo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;proc hpforest data= train leafsize=20;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; target survived / level= binary;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; input SibSp Parch / level= binary;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; input age / level= interval;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; input sex / level= nominal;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;ods&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; output fitstatistics = fitstats;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; save file = "c:\temp\model_fit.bin";&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; surveyselect &lt;/FONT&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;= train&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;&amp;nbsp;&amp;nbsp; method&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;srs&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;N&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" size="2"&gt;&lt;FONT color="#800080" size="2"&gt;100&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;out&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;= samp;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;proc hp4score data=samp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; id survived;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; score file= "c:\temp\model_fit.bin"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp; out=scored;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; performance details;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#ff0000" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 09:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307344#M4602</guid>
      <dc:creator>marcelo_higasi</dc:creator>
      <dc:date>2016-10-26T09:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307349#M4603</link>
      <description>&lt;P&gt;If you have SAS EM you can export your score code into SAS, You can also get a PMML, C or Java score code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't access the docs but look for a CODE statement to see if that will generate the SAS code for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 10:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307349#M4603</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-26T10:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307597#M4604</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Reeza,&lt;/P&gt;&lt;P&gt;Thank you for helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not have EM either. I can run HPForest in SAS code only&amp;nbsp;because&amp;nbsp;my license has access to the&amp;nbsp;High Performnce module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried the seraching for "code" statements. What I found was something like "code file = &amp;lt;file location&amp;gt;" but it does not seem to work with HPforest. Or maybe I do know the correct syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would yoy have any other suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 09:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307597#M4604</guid>
      <dc:creator>marcelo_higasi</dc:creator>
      <dc:date>2016-10-27T09:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307600#M4606</link>
      <description>&lt;P&gt;Is there a RULES statement?&lt;/P&gt;
&lt;P&gt;What does the following show?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc setinit;&lt;/P&gt;
&lt;P&gt;proc product_status;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HPFOREST isn't listed under HP Stat procedures...I'm mostly curious here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 09:40:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307600#M4606</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-27T09:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307602#M4607</link>
      <description>&lt;P&gt;Intersting, it appears that I do have license for EM&lt;/P&gt;&lt;P align="left"&gt;---SAS Enterprise Miner Server/Client v13.1&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;However I do not have acces to it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I believe I am able to run HPForest because I also have access to &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;---High Performance Suite v2.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I cannot find any good syntax reference for HPforest or HP4score.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Do you have an example of RULES statement fir HPforest or HP4Score?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks again&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 09:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307602#M4607</guid>
      <dc:creator>marcelo_higasi</dc:creator>
      <dc:date>2016-10-27T09:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307639#M4609</link>
      <description>&lt;P&gt;Actually you can't get SAS Data step, C, Java, or PMML score code for HP Forest models. &amp;nbsp;You need to use either the HP4SCORE or ASTORE procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This tip has information about scoring with PROC ASTORE:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-High-Performance-Analytics-tip-5-Scoring-with-Analytic-Store/ta-p/253544" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-High-Performance-Analytics-tip-5-Scoring-with-Analytic-Store/ta-p/253544&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you are trying to score data in a database, this tip walks through how to use the score code (with HP4SCORE) to score distributed data: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Tip-How-Can-I-Apply-HP-Forest-Score-Code-to-Distributed-Data/ta-p/221493" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Tip-How-Can-I-Apply-HP-Forest-Score-Code-to-Distributed-Data/ta-p/221493&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 14:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/307639#M4609</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2016-10-27T14:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/308196#M4626</link>
      <description>&lt;P&gt;Thanks very much for your help Wendy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've come across HP4score and it works fine. My challenge is to produce code out of an HPforest procedure which can be used to implement the model outside of SAS (using C++ for instance). Based on your response this does not seem possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried HPneural and it seems like is can output as SAS code "score out=survived_score"; It would handy if this statement was also available in HPforrest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 06:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/308196#M4626</guid>
      <dc:creator>marcelo_higasi</dc:creator>
      <dc:date>2016-10-31T06:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/308266#M4629</link>
      <description>&lt;P&gt;The HPFOREST procedure does also support a SCORE statement where you can specify the output (scored) data set. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 13:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/308266#M4629</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2016-10-31T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring PROC HPForest</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/369791#M5510</link>
      <description>&lt;P&gt;I have added the below two lines to my Random Forest Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#0000e6" size="2"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;ods&lt;/FONT&gt;&lt;FONT size="2"&gt; output fitstatistics = fitstats;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#ff0000" size="2"&gt;&amp;nbsp;&amp;nbsp; save file = "c:\temp\model_fit.bin";&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" size="2"&gt;I get the below error:&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;Unable to open model file for writing.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000" size="2"&gt;Why am I seeing this error? How can I get rid of it?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 07:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-PROC-HPForest/m-p/369791#M5510</guid>
      <dc:creator>MaheshP</dc:creator>
      <dc:date>2017-06-23T07:37:46Z</dc:date>
    </item>
  </channel>
</rss>

