<?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: PROC HPSPLIT Decision Tree in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/PROC-HPSPLIT-Decision-Tree/m-p/386041#M5698</link>
    <description>&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;On the PROC HPSPLIT statement, there is a PLOTS option that will allow you to open up the subtree where you start and to a set depth. &amp;nbsp;In complex trees, you will not be able to reasonably see the entire tree in one plot without losing many details. &amp;nbsp;The code below refers to the SAMPSIO.HMEQ data set which is available as a sample data set in SAS Enterprise Miner and is also attached here. The code requests the displayed Tree to have a depth of &lt;STRONG&gt;5&lt;/STRONG&gt; beginning from node "&lt;STRONG&gt;3&lt;/STRONG&gt;":&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;/*** BEGIN SAS CODE ***/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;libname &lt;STRONG&gt;x&lt;/STRONG&gt; '&lt;STRONG&gt;c:\data&lt;/STRONG&gt;'; &amp;nbsp; * &lt;STRONG&gt;&amp;lt; note: change libname and path as needed &amp;gt;&lt;/STRONG&gt; ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;proc hpsplit data=&lt;STRONG&gt;x.hmeq&lt;/STRONG&gt; seed=123 maxdepth=10 plots=(zoomedtree(&lt;STRONG&gt;nodes&lt;/STRONG&gt;=("&lt;STRONG&gt;3&lt;/STRONG&gt;") &lt;STRONG&gt;depth&lt;/STRONG&gt;=&lt;STRONG&gt;5&lt;/STRONG&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp; &amp;nbsp;class bad reason job;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp; &amp;nbsp;model bad (event='1') = debtinc derog loan mortdue value job reason clno ninq yoj;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp; &amp;nbsp;grow entropy;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp; &amp;nbsp;prune off;* costcomplexity(leaves=all);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;/*** END SAS CODE ***/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;Doug&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2017 14:49:43 GMT</pubDate>
    <dc:creator>DougWielenga</dc:creator>
    <dc:date>2017-08-07T14:49:43Z</dc:date>
    <item>
      <title>PROC HPSPLIT Decision Tree</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/PROC-HPSPLIT-Decision-Tree/m-p/374933#M5586</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After using the PROC HPSPLIT, a decision tree with at depth of 10 is returned. However, SAS only shows the first three splits from Node=0 and the whole tree cannot be viewed. How do I view the entire decision tree? Also, I would like to see the number of observations at each node. How do would I see that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 13:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/PROC-HPSPLIT-Decision-Tree/m-p/374933#M5586</guid>
      <dc:creator>jackmelbourne</dc:creator>
      <dc:date>2017-07-11T13:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HPSPLIT Decision Tree</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/PROC-HPSPLIT-Decision-Tree/m-p/386041#M5698</link>
      <description>&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;On the PROC HPSPLIT statement, there is a PLOTS option that will allow you to open up the subtree where you start and to a set depth. &amp;nbsp;In complex trees, you will not be able to reasonably see the entire tree in one plot without losing many details. &amp;nbsp;The code below refers to the SAMPSIO.HMEQ data set which is available as a sample data set in SAS Enterprise Miner and is also attached here. The code requests the displayed Tree to have a depth of &lt;STRONG&gt;5&lt;/STRONG&gt; beginning from node "&lt;STRONG&gt;3&lt;/STRONG&gt;":&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;/*** BEGIN SAS CODE ***/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;libname &lt;STRONG&gt;x&lt;/STRONG&gt; '&lt;STRONG&gt;c:\data&lt;/STRONG&gt;'; &amp;nbsp; * &lt;STRONG&gt;&amp;lt; note: change libname and path as needed &amp;gt;&lt;/STRONG&gt; ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;proc hpsplit data=&lt;STRONG&gt;x.hmeq&lt;/STRONG&gt; seed=123 maxdepth=10 plots=(zoomedtree(&lt;STRONG&gt;nodes&lt;/STRONG&gt;=("&lt;STRONG&gt;3&lt;/STRONG&gt;") &lt;STRONG&gt;depth&lt;/STRONG&gt;=&lt;STRONG&gt;5&lt;/STRONG&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp; &amp;nbsp;class bad reason job;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp; &amp;nbsp;model bad (event='1') = debtinc derog loan mortdue value job reason clno ninq yoj;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp; &amp;nbsp;grow entropy;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp; &amp;nbsp;prune off;* costcomplexity(leaves=all);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;/*** END SAS CODE ***/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs1B16EEB5"&gt;Doug&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 14:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/PROC-HPSPLIT-Decision-Tree/m-p/386041#M5698</guid>
      <dc:creator>DougWielenga</dc:creator>
      <dc:date>2017-08-07T14:49:43Z</dc:date>
    </item>
  </channel>
</rss>

