<?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 How to represent the Y response of the decision tree as a variable? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68726#M34899</link>
    <description>&lt;P&gt;dear all&lt;/P&gt;&lt;P&gt;I want to do multiple data table files with the same code for the decision tree operation, and each file has three different Y response decision trees.&lt;/P&gt;&lt;P&gt;Set the Y response of each file in the first 3 columns of the table, and the number of X factor column starting from column 4 is different for each file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The specific practice of making three decision trees for each file is: the first time is carried out with the Y response of column 1;The second time was done with the Y response of column 2;The third time is done with the Y response of column 3.&lt;/P&gt;&lt;P&gt;The X factor used each time starts with column 5 and ends with column 2.The second X factor to the second X factor.&lt;/P&gt;&lt;P&gt;How to code this decision tree code so that the same code can perform operations in different files.&lt;/P&gt;&lt;P&gt;In the annex, Boston Housing.jmp adds 2 columns to the Y response so that 3 columns of the Y response are available and moved to the first 3 columns of the table.&lt;/P&gt;&lt;P&gt;It's complicated, thank you very much!&lt;/P&gt;</description>
    <pubDate>Sat, 18 Aug 2018 14:21:52 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2018-08-18T14:21:52Z</dc:date>
    <item>
      <title>How to represent the Y response of the decision tree as a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68726#M34899</link>
      <description>&lt;P&gt;dear all&lt;/P&gt;&lt;P&gt;I want to do multiple data table files with the same code for the decision tree operation, and each file has three different Y response decision trees.&lt;/P&gt;&lt;P&gt;Set the Y response of each file in the first 3 columns of the table, and the number of X factor column starting from column 4 is different for each file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The specific practice of making three decision trees for each file is: the first time is carried out with the Y response of column 1;The second time was done with the Y response of column 2;The third time is done with the Y response of column 3.&lt;/P&gt;&lt;P&gt;The X factor used each time starts with column 5 and ends with column 2.The second X factor to the second X factor.&lt;/P&gt;&lt;P&gt;How to code this decision tree code so that the same code can perform operations in different files.&lt;/P&gt;&lt;P&gt;In the annex, Boston Housing.jmp adds 2 columns to the Y response so that 3 columns of the Y response are available and moved to the first 3 columns of the table.&lt;/P&gt;&lt;P&gt;It's complicated, thank you very much!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 14:21:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68726#M34899</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-08-18T14:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent the Y response of the decision tree as a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68727#M34900</link>
      <description>&lt;P&gt;Upload a data table adjusted by Boston housing.jmp, and I won't upload the code.Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 14:26:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68727#M34900</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-08-18T14:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent the Y response of the decision tree as a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68728#M34901</link>
      <description>Note: only one data table file is uploaded here. It is assumed that there are several other different data table files in the same path, and the names of Y response and X factor of different data table files are different.In the previous setting, the respective Y responses were all in the first 3 columns, and the number of X factor columns was different.</description>
      <pubDate>Sat, 18 Aug 2018 14:46:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68728#M34901</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-08-18T14:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent the Y response of the decision tree as a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68729#M34902</link>
      <description>&lt;P&gt;Here is a simple script that will run the 3 Decision Trees once the data table is in the form of the first 3 columns being the Y responses, and the remaining columns being the X factors.&amp;nbsp; I do not follow your&lt;/P&gt;
&lt;P&gt;"The X factor used each time starts with column 5 and ends with column 2.The second X factor to the second X factor.&lt;/P&gt;
&lt;P&gt;How to code this decision tree code so that the same code can perform operations in different files.&lt;/P&gt;
&lt;P&gt;In the annex, Boston Housing.jmp adds 2 columns to the Y response so that 3 columns of the Y response are available and moved to the first 3 columns of the table.".&lt;/P&gt;
&lt;P&gt;If what I have provided is not what you are seeking, please provide more specifics&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

// Get all of the columm names
colNamesList = dt &amp;lt;&amp;lt; get column names;

// Get the Y Factor columns
yFactorList = As List( colNamesList[1 :: 3] );

// Get the X Factor columns
xFactorList = As List( colNamesList[4 :: N Items( colNamesList )] );

// Run the Partitions


Partition(
	Y( Eval( yFactorList ) ),
	X( Eval( xFactorList ) ),
	Split Best( 3 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Aug 2018 15:21:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68729#M34902</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-18T15:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent the Y response of the decision tree as a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68758#M34916</link>
      <description>Thank you. Your answer has solved my problem.&lt;BR /&gt;&lt;BR /&gt;I made a mistake in the previous statement, which should be: X factor goes from column 5 to the penultimate column 2.</description>
      <pubDate>Sun, 19 Aug 2018 12:46:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-the-Y-response-of-the-decision-tree-as-a/m-p/68758#M34916</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-08-19T12:46:14Z</dc:date>
    </item>
  </channel>
</rss>

