<?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: How do I get the default &amp;quot;minimum Size Split&amp;quot; in a decision tree using JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-default-quot-minimum-Size-Split-quot-in-a/m-p/78155#M36355</link>
    <description>&lt;P&gt;It seems that internally when the Minimum Size Split in preferences is unchecked ( &amp;lt;&amp;lt;Off ) the default that appears in the options is 5. If the user's Platform Preferences for Partition is set the set value will be used for both the prompt window you displayed as well as the application, unless it is changed.&lt;/P&gt;&lt;P&gt;If you do not want the user's preferences, specify Partition(Y(), X(), Ignore Platform Preferences(1) );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you ignore platform preferences, you will need to modify the script below and assume the default minimum size is 5.&lt;/P&gt;&lt;P&gt;Here is a script to capture if the user set the preference from the Preferences UI or Partition UI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Partition(
	Y( :Species ),
	X( :Sepal length, :Sepal width, :Petal length, :Petal width ),
	Informative Missing( 1 ),
	Minimum Size Split(3)
);
obj &amp;lt;&amp;lt; split best(2);&lt;BR /&gt;&lt;BR /&gt;//since you are letting the user do this, grab the window and get the script
scrp = (obj &amp;lt;&amp;lt; get script);  //if the minimum split size was set, can parse it from the script.
for(i=1, i&amp;lt;=narg(scrp), i++,
	 _tt = Arg(scrp, i);
	 if(Head Name(_tt) == "Minimum Size Split", 
		_sz = Arg(_tt,1);
		Break();
	 )
);


_ppsz= Arg(Arg(get platform preferences(Partition(Minimum Size Split)), 1), 1);

if(Arg(_ppsz,1) == 0 &amp;amp; Is Missing(_sz), _sz=5,
    Arg(_ppsz,1) &amp;gt;0  &amp;amp; Is Missing(_sz), _sz=Arg(_ppsz,1)
  );
show(_sz);


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Oct 2018 18:49:44 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-10-06T18:49:44Z</dc:date>
    <item>
      <title>How do I get the default "minimum Size Split" in a decision tree using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-default-quot-minimum-Size-Split-quot-in-a/m-p/78140#M36350</link>
      <description>&lt;P&gt;Hello, everyone!&lt;BR /&gt;I want to use JSL get the default "minimum Size Split" in a decision tree .&lt;BR /&gt;Thanks you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="2018-10-08_18-48-40.png" style="width: 564px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12711i6BEA48582BB3642E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-10-08_18-48-40.png" alt="2018-10-08_18-48-40.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 10:55:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-default-quot-minimum-Size-Split-quot-in-a/m-p/78140#M36350</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-10-06T10:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the default "minimum Size Split" in a decision tree using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-default-quot-minimum-Size-Split-quot-in-a/m-p/78155#M36355</link>
      <description>&lt;P&gt;It seems that internally when the Minimum Size Split in preferences is unchecked ( &amp;lt;&amp;lt;Off ) the default that appears in the options is 5. If the user's Platform Preferences for Partition is set the set value will be used for both the prompt window you displayed as well as the application, unless it is changed.&lt;/P&gt;&lt;P&gt;If you do not want the user's preferences, specify Partition(Y(), X(), Ignore Platform Preferences(1) );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you ignore platform preferences, you will need to modify the script below and assume the default minimum size is 5.&lt;/P&gt;&lt;P&gt;Here is a script to capture if the user set the preference from the Preferences UI or Partition UI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Partition(
	Y( :Species ),
	X( :Sepal length, :Sepal width, :Petal length, :Petal width ),
	Informative Missing( 1 ),
	Minimum Size Split(3)
);
obj &amp;lt;&amp;lt; split best(2);&lt;BR /&gt;&lt;BR /&gt;//since you are letting the user do this, grab the window and get the script
scrp = (obj &amp;lt;&amp;lt; get script);  //if the minimum split size was set, can parse it from the script.
for(i=1, i&amp;lt;=narg(scrp), i++,
	 _tt = Arg(scrp, i);
	 if(Head Name(_tt) == "Minimum Size Split", 
		_sz = Arg(_tt,1);
		Break();
	 )
);


_ppsz= Arg(Arg(get platform preferences(Partition(Minimum Size Split)), 1), 1);

if(Arg(_ppsz,1) == 0 &amp;amp; Is Missing(_sz), _sz=5,
    Arg(_ppsz,1) &amp;gt;0  &amp;amp; Is Missing(_sz), _sz=Arg(_ppsz,1)
  );
show(_sz);


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 18:49:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-default-quot-minimum-Size-Split-quot-in-a/m-p/78155#M36355</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-10-06T18:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the default "minimum Size Split" in a decision tree using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-default-quot-minimum-Size-Split-quot-in-a/m-p/78191#M36357</link>
      <description>Thank you!&lt;BR /&gt;You're very precise!</description>
      <pubDate>Sun, 07 Oct 2018 08:25:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-default-quot-minimum-Size-Split-quot-in-a/m-p/78191#M36357</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-10-07T08:25:27Z</dc:date>
    </item>
  </channel>
</rss>

