<?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: Where are variables/model effects stored for looped models in eminer? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Where-are-variables-model-effects-stored-for-looped-models-in/m-p/529783#M7628</link>
    <description>&lt;P&gt;The &lt;STRONG&gt;tree_outimport&lt;/STRONG&gt; data set has the variable importance for the inputs for the Decision Tree node, so you can use that to subset the variables, you would just need to filter out the rows that have importance=0 to remove the un-used inputs.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 17:56:22 GMT</pubDate>
    <dc:creator>WendyCzika</dc:creator>
    <dc:date>2019-01-24T17:56:22Z</dc:date>
    <item>
      <title>Where are variables/model effects stored for looped models in eminer?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Where-are-variables-model-effects-stored-for-looped-models-in/m-p/529318#M7626</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="post-text"&gt;&lt;P&gt;I am using an ensemble model in SAS eminer to join a Decision Tree and two Regression Models and need to collect the variables in SAS Eguide for scoring new data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All three models are looped over a segment (of which there are 30) with start and end groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that for a regression model variables are stored in emws1/reg_effects and worked out that emws1/reg_effects_loop will provide all input variables for each looped regression model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am unable to find a similar file for decision trees or other models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can find for example emws1/tree_variableset - but this has too few variables (I think it is for a single segment - presumably the last).&lt;/P&gt;&lt;P&gt;Of course, if there is a final list somewhere (maybe in the ensemble model file?) that contains all variables used in all parts of the model that would be the best (rather than importing separately for each model).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and please let me know if anything is unclear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I'm using (in this case, reg_effects_loop will pull all variables happily, whereas the other two seem to be pulling variables for only one segment).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data frankie.&amp;amp;projx._eff_tree (keep=variable);
rename name=variable;
set  &amp;amp;SEM..tree_variableset (where=(role='INPUT'));
run;
data frankie.&amp;amp;projx._eff_reg (keep=variable);
rename name=variable;
set  &amp;amp;SEM..reg_effects_loop (where=(role='INPUT'));
run;
data frankie.&amp;amp;projx._eff_princomp (keep=variable);
rename name=variable;
set  &amp;amp;SEM..princomp_variableset (where=(role='INPUT'));
run;

data frankie.&amp;amp;projx.eff_all;
set 
frankie.&amp;amp;projx._eff_reg
frankie.&amp;amp;projx._eff_tree
frankie.&amp;amp;projx._eff_princomp
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Jan 2019 02:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Where-are-variables-model-effects-stored-for-looped-models-in/m-p/529318#M7626</guid>
      <dc:creator>frankie_s_tyo</dc:creator>
      <dc:date>2019-01-23T02:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where are variables/model effects stored for looped models in eminer?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Where-are-variables-model-effects-stored-for-looped-models-in/m-p/529783#M7628</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;tree_outimport&lt;/STRONG&gt; data set has the variable importance for the inputs for the Decision Tree node, so you can use that to subset the variables, you would just need to filter out the rows that have importance=0 to remove the un-used inputs.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Where-are-variables-model-effects-stored-for-looped-models-in/m-p/529783#M7628</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2019-01-24T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Where are variables/model effects stored for looped models in eminer?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Where-are-variables-model-effects-stored-for-looped-models-in/m-p/530524#M7629</link>
      <description>&lt;P&gt;Many thanks - there exists a file 'tree_outimport_loop' which has all iterations inside that I was able to use.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 01:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Where-are-variables-model-effects-stored-for-looped-models-in/m-p/530524#M7629</guid>
      <dc:creator>frankie_s_tyo</dc:creator>
      <dc:date>2019-01-28T01:34:38Z</dc:date>
    </item>
  </channel>
</rss>

