<?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: ERROR: HPSPLIT found too many target levels to execute properly. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586438#M14490</link>
    <description>&lt;P&gt;The target variable is a continous one so for example&amp;nbsp; one data set&amp;nbsp;has 848 observations where target variable has 748 distinct values - there error occured. On the other data set is 483 observations and 453 distinct values of target variable and it works properly. It is possible to avoid this error somehow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 14:45:49 GMT</pubDate>
    <dc:creator>ik84135</dc:creator>
    <dc:date>2019-09-05T14:45:49Z</dc:date>
    <item>
      <title>ERROR: HPSPLIT found too many target levels to execute properly.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586423#M14482</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Enterprise&amp;nbsp; Guide 7.1. I try to develop some decision trees by using hpsplit procedure. It works properly on one data set and decision tree is generated&amp;nbsp;but error occured on other which has the same variables (just different values and number of observations). What could be a cause of this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 13:52:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586423#M14482</guid>
      <dc:creator>ik84135</dc:creator>
      <dc:date>2019-09-05T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: HPSPLIT found too many target levels to execute properly.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586425#M14483</link>
      <description>&lt;P&gt;The error message seems to explain the problem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Re: ERROR: HPSPLIT found too many target levels to execute properly.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How many distinct levels are there in your target variable?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 13:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586425#M14483</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-05T13:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: HPSPLIT found too many target levels to execute properly.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586438#M14490</link>
      <description>&lt;P&gt;The target variable is a continous one so for example&amp;nbsp; one data set&amp;nbsp;has 848 observations where target variable has 748 distinct values - there error occured. On the other data set is 483 observations and 453 distinct values of target variable and it works properly. It is possible to avoid this error somehow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 14:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586438#M14490</guid>
      <dc:creator>ik84135</dc:creator>
      <dc:date>2019-09-05T14:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: HPSPLIT found too many target levels to execute properly.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586450#M14496</link>
      <description>&lt;P&gt;It may help to provide the code implemented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps this from the documentation of the procedure provides a clue:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H3 class="xis-title"&gt;Memory Considerations&lt;/H3&gt;
&lt;P&gt;The HPSPLIT procedure is designed for high-performance computing. As a result, it does not create utility files but rather stores all the data in memory. Data sets that have a large number of predictor variables and a large number of response levels can cause PROC HPSPLIT to run out of memory. One way to overcome this problem is to give SAS more memory to use. Another way is to use fewer threads, which reduces the memory that is required. You can use the NTHREADS= option in the PERFORMANCE statement to specify the number of threads. For more information, see the section &lt;A href="http://127.0.0.1:53575/help/stathpug.hlp/stathpug_introcom_sect026.htm" target="_blank"&gt;PERFORMANCE Statement&lt;/A&gt;.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The combination of the number of target variable levels and predictor variables affect the memory usage. So the set with fewer target variable levels didn't have the issue but the other does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Options actually used may allow more specific suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 15:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586450#M14496</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-05T15:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: HPSPLIT found too many target levels to execute properly.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586644#M14540</link>
      <description>&lt;P&gt;Could you explain how this nthreads option excactly works and what value I should put there? I tried different combinations but it didn't help or maybe any other solutions ? Error occures immidiately after running the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpsplit data=table_2 seed= 123 assignmissing=branch cvmodelfit maxdepth=8 maxbranch=2 LEAFSIZE=10;

class target_var ;

model target_var = 


var1

var2

var3

;

grow chaid;

performance nthreads = 5;

prune costcomplexity (leaves = 6);

output out=tree1;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 07:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-HPSPLIT-found-too-many-target-levels-to-execute-properly/m-p/586644#M14540</guid>
      <dc:creator>ik84135</dc:creator>
      <dc:date>2019-09-06T07:39:03Z</dc:date>
    </item>
  </channel>
</rss>

