<?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 HP4SCORE to calculate variable importance after creating a model with HPFOREST with FREQ statement in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/HP4SCORE-to-calculate-variable-importance-after-creating-a-model/m-p/690746#M8461</link>
    <description>&lt;P&gt;I am trying to evaluate variable importance by creating a model with hpforest and then running hp4score with importance statement. The problem is freq statement in hpforest. Without this statement i can get non zero results from hp4score. If i have freq statement in hpforest then hp4score produces var importance table with only 0 populated for each var. By the way there is var importance in hpforest output and that produces valid values in either case. But i would like to use var importance from hp4score as it is more accurate. The sample code is below. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpforest data=a;
target loss_rate;
freq balance;
input var1 var2;
save file='model.sav';
run;

proc hp4score data=a;
importance file='model.sav';
var=(var1 var2);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Oct 2020 02:26:13 GMT</pubDate>
    <dc:creator>constantine</dc:creator>
    <dc:date>2020-10-11T02:26:13Z</dc:date>
    <item>
      <title>HP4SCORE to calculate variable importance after creating a model with HPFOREST with FREQ statement</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/HP4SCORE-to-calculate-variable-importance-after-creating-a-model/m-p/690746#M8461</link>
      <description>&lt;P&gt;I am trying to evaluate variable importance by creating a model with hpforest and then running hp4score with importance statement. The problem is freq statement in hpforest. Without this statement i can get non zero results from hp4score. If i have freq statement in hpforest then hp4score produces var importance table with only 0 populated for each var. By the way there is var importance in hpforest output and that produces valid values in either case. But i would like to use var importance from hp4score as it is more accurate. The sample code is below. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpforest data=a;
target loss_rate;
freq balance;
input var1 var2;
save file='model.sav';
run;

proc hp4score data=a;
importance file='model.sav';
var=(var1 var2);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Oct 2020 02:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/HP4SCORE-to-calculate-variable-importance-after-creating-a-model/m-p/690746#M8461</guid>
      <dc:creator>constantine</dc:creator>
      <dc:date>2020-10-11T02:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: HP4SCORE to calculate variable importance after creating a model with HPFOREST with FREQ stateme</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/HP4SCORE-to-calculate-variable-importance-after-creating-a-model/m-p/692208#M8462</link>
      <description>&lt;P&gt;This should work correctly in the latest version, SAS Enterprise Miner 15.2.&lt;/P&gt;
&lt;P&gt;The only work-around I can think for the previous versions is to expand your data by the frequency variable so you don't need the FREQ statement in PROC HPFOREST.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 18:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/HP4SCORE-to-calculate-variable-importance-after-creating-a-model/m-p/692208#M8462</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2020-10-16T18:48:28Z</dc:date>
    </item>
  </channel>
</rss>

