<?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: Running GBM in SAS eminer in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Running-GBM-in-SAS-eminer/m-p/425260#M6508</link>
    <description>&lt;P&gt;If you were using a binary target, I would have suggested you look at &lt;A href="http://support.sas.com/kb/47/965.html" target="_self"&gt;Usage Note 47965&lt;/A&gt; which describes some approaches to modeling a rare target level (&lt;A href="http://support.sas.com/kb/47/965.html" target="_self"&gt;http://support.sas.com/kb/47/965.html&lt;/A&gt;) which is often the reason why a default Tree or Gradient Boosting model does not find any splits. Since the target is interval, consider using some of the following approaches to identifying possible issues:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 - Review the log - sometimes the log explains why splits were not found for certain variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 - Run a Variable Selection node to identify which if any of the variables appear to be useful for splitting&lt;/P&gt;
&lt;P&gt;NOTE:&amp;nbsp;The Variable Selection node generates grouped versions of the nominal/ordinal variables, and it optionally can create grouped versions of interval variables.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 - Evaluate the distribution/relationship between the target variable and the grouped and ungrouped versions of the variables identified as important to determine if there are any potential concerns (e.g. is the target heavily skewed?&amp;nbsp; are there too many missing values in the input?&amp;nbsp; are there too many class levels for a nominal variable? is there too little support for the target in large ranges of the interval variable? etc...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4 - Run a Decision Tree against the data to see if it generates any splits, and review the results to see if there are any apparent issues that might point to a cause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5 - Create a binary target out of your interval target by creating a threshold (e.g. flag those observations that are in the top 10% of the data) as "Yes" and the rest as "No".&amp;nbsp; You can then try the approaches given in&amp;nbsp;&lt;A href="http://support.sas.com/kb/47/965.html" target="_self"&gt;Usage Note 47965&lt;/A&gt;&amp;nbsp;for a binary target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cordially,&lt;/P&gt;
&lt;P&gt;Doug&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 15:51:03 GMT</pubDate>
    <dc:creator>DougWielenga</dc:creator>
    <dc:date>2018-01-05T15:51:03Z</dc:date>
    <item>
      <title>Running GBM in SAS eminer</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Running-GBM-in-SAS-eminer/m-p/421090#M6455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to SAS Eminer and trying to figure out how to Run the GBM node. The diagram I have created looks like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diagram.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17220i6140B1A4F4B78DCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="diagram.PNG" alt="diagram.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In both the data sets I have set the target variable which is a continuous variable. In the gbm node I have set the options as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbm_2.PNG" style="width: 281px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17221iD4971B52602583B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="gbm_2.PNG" alt="gbm_2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbm_1.PNG" style="width: 269px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17222i1F022E708027CB17/image-size/large?v=v2&amp;amp;px=999" role="button" title="gbm_1.PNG" alt="gbm_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the set the score options as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="score.PNG" style="width: 273px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17223i0B21DBFAFBC7630B/image-size/large?v=v2&amp;amp;px=999" role="button" title="score.PNG" alt="score.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the gbm results I am getting when I run the diagram. Here none of the nodes have any importance value which kind of tells that the gbm is not running properly. I have uploaded the model output as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="results_gbm.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17224i9DE761EE3CFC9C39/image-size/large?v=v2&amp;amp;px=999" role="button" title="results_gbm.PNG" alt="results_gbm.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the SAS code being generated in the score node&lt;/P&gt;&lt;PRE&gt;*------------------------------------------------------------*;
* EM SCORE CODE;
*------------------------------------------------------------*;
*------------------------------------------------------------*;
* TOOL: Input Data Source;
* TYPE: SAMPLE;
* NODE: Ids;
*------------------------------------------------------------*;
*------------------------------------------------------------*;
* TOOL: Extension Class;
* TYPE: MODEL;
* NODE: Boost;
*------------------------------------------------------------*;
****************************************************************;
****** DECISION TREE SCORING CODE ******;
****************************************************************;

****** LENGTHS OF NEW CHARACTER VARIABLES ******;
LENGTH _WARN_ $ 4;

****** LABELS FOR NEW VARIABLES ******;
label P_SALES_QTY_MODEL = 'Predicted: SALES_QTY_MODEL' ;
P_SALES_QTY_MODEL = 2.2083471984;
label _WARN_ = 'Warnings' ;

&amp;nbsp;


****************************************************************;
****** END OF DECISION TREE SCORING CODE ******;
****************************************************************;
*------------------------------------------------------------*;
* TOOL: Score Node;
* TYPE: ASSESS;
* NODE: Score;
*------------------------------------------------------------*;
*------------------------------------------------------------*;
* Score: Creating Fixed Names;
*------------------------------------------------------------*;
LABEL EM_PREDICTION= "Prediction for SALES_QTY_MODEL";
EM_PREDICTION = P_SALES_QTY_MODEL;&lt;/PRE&gt;&lt;P&gt;It would be great if anyone can help me out in understanding where I am going wrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 06:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Running-GBM-in-SAS-eminer/m-p/421090#M6455</guid>
      <dc:creator>rbhadra</dc:creator>
      <dc:date>2017-12-14T06:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Running GBM in SAS eminer</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Running-GBM-in-SAS-eminer/m-p/422093#M6477</link>
      <description>&lt;P&gt;&lt;SPAN&gt;First think I'd suggest trying is using a smaller value for the Leaf Fraction property in order to get some splits in your model. &amp;nbsp;There are also different options for handling missing values, so you can try different options for the Missing Values property. &amp;nbsp;If you have much more than 20K observations in your training data, you can also try increasing the Node Sample property.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 19:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Running-GBM-in-SAS-eminer/m-p/422093#M6477</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2017-12-18T19:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running GBM in SAS eminer</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Running-GBM-in-SAS-eminer/m-p/425260#M6508</link>
      <description>&lt;P&gt;If you were using a binary target, I would have suggested you look at &lt;A href="http://support.sas.com/kb/47/965.html" target="_self"&gt;Usage Note 47965&lt;/A&gt; which describes some approaches to modeling a rare target level (&lt;A href="http://support.sas.com/kb/47/965.html" target="_self"&gt;http://support.sas.com/kb/47/965.html&lt;/A&gt;) which is often the reason why a default Tree or Gradient Boosting model does not find any splits. Since the target is interval, consider using some of the following approaches to identifying possible issues:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 - Review the log - sometimes the log explains why splits were not found for certain variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 - Run a Variable Selection node to identify which if any of the variables appear to be useful for splitting&lt;/P&gt;
&lt;P&gt;NOTE:&amp;nbsp;The Variable Selection node generates grouped versions of the nominal/ordinal variables, and it optionally can create grouped versions of interval variables.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 - Evaluate the distribution/relationship between the target variable and the grouped and ungrouped versions of the variables identified as important to determine if there are any potential concerns (e.g. is the target heavily skewed?&amp;nbsp; are there too many missing values in the input?&amp;nbsp; are there too many class levels for a nominal variable? is there too little support for the target in large ranges of the interval variable? etc...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4 - Run a Decision Tree against the data to see if it generates any splits, and review the results to see if there are any apparent issues that might point to a cause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5 - Create a binary target out of your interval target by creating a threshold (e.g. flag those observations that are in the top 10% of the data) as "Yes" and the rest as "No".&amp;nbsp; You can then try the approaches given in&amp;nbsp;&lt;A href="http://support.sas.com/kb/47/965.html" target="_self"&gt;Usage Note 47965&lt;/A&gt;&amp;nbsp;for a binary target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cordially,&lt;/P&gt;
&lt;P&gt;Doug&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 15:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Running-GBM-in-SAS-eminer/m-p/425260#M6508</guid>
      <dc:creator>DougWielenga</dc:creator>
      <dc:date>2018-01-05T15:51:03Z</dc:date>
    </item>
  </channel>
</rss>

