<?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 to get classification table for test data from model in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-classification-table-for-test-data-from-model/m-p/495476#M7362</link>
    <description>&lt;P&gt;SAS doesn't output the information in the main output window for the test data set.&amp;nbsp; In order to see the Event Classification table, you can open the Model Comparison node and look at the Fit Statistics table to see the output the test data set.&amp;nbsp; Another option would be to recreate the counts by running PROC FREQ in a SAS Code node after the Decision Tree node.&amp;nbsp; The code would look something like this:&lt;BR /&gt;&lt;BR /&gt;proc freq data=&amp;amp;em_import_test;&lt;BR /&gt;&amp;nbsp;tables _NODE_ * I_&amp;lt;targetvar_name&amp;gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 19:37:43 GMT</pubDate>
    <dc:creator>CraigDeVault</dc:creator>
    <dc:date>2018-09-13T19:37:43Z</dc:date>
    <item>
      <title>How to get classification table for test data from model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-classification-table-for-test-data-from-model/m-p/495277#M7358</link>
      <description>&lt;P&gt;Below my diagram where I am fitting tree based models. The data node labeled "cfgus_data" is used for training and validation.&lt;/P&gt;&lt;P&gt;My testing data is separate so I added it as node labeled "scoring data" I have also set the output type property to Data and role to test for this data set under "Train" section of properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wanted to get was the "classification table" showing me TP, FP, TN, FN&amp;nbsp;on test data. However, in the "Output" section of results I don't see this for test data set. I am sharing the "&lt;SPAN&gt;Event Classification Table&lt;/SPAN&gt;" section below for reference which is only showing the metrics for Train and Validate part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am doing wrong? Please advise me how to fix this..&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Event Classification Table&lt;BR /&gt;Model Selection based on Valid: Average Profit (_VAPROF_)&lt;BR /&gt;&lt;BR /&gt;Model Model Data Target False True False True&lt;BR /&gt;Node Description Role Target Label Negative Negative Positive Positive&lt;BR /&gt;&lt;BR /&gt;HPTree HP Tree TRAIN FG 51 455 12 31&lt;BR /&gt;HPTree HP Tree VALIDATE FG 20 193 8 16&lt;BR /&gt;Tree Decision Tree TRAIN FG 82 467 0 0&lt;BR /&gt;Tree Decision Tree VALIDATE FG 36 201 0 0&lt;/P&gt;&lt;/BLOCKQUOTE&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="Tree.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23257i300FE7792F7E0E86/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tree.PNG" alt="Tree.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 13:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-classification-table-for-test-data-from-model/m-p/495277#M7358</guid>
      <dc:creator>majeedk</dc:creator>
      <dc:date>2018-09-13T13:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get classification table for test data from model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-classification-table-for-test-data-from-model/m-p/495476#M7362</link>
      <description>&lt;P&gt;SAS doesn't output the information in the main output window for the test data set.&amp;nbsp; In order to see the Event Classification table, you can open the Model Comparison node and look at the Fit Statistics table to see the output the test data set.&amp;nbsp; Another option would be to recreate the counts by running PROC FREQ in a SAS Code node after the Decision Tree node.&amp;nbsp; The code would look something like this:&lt;BR /&gt;&lt;BR /&gt;proc freq data=&amp;amp;em_import_test;&lt;BR /&gt;&amp;nbsp;tables _NODE_ * I_&amp;lt;targetvar_name&amp;gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-classification-table-for-test-data-from-model/m-p/495476#M7362</guid>
      <dc:creator>CraigDeVault</dc:creator>
      <dc:date>2018-09-13T19:37:43Z</dc:date>
    </item>
  </channel>
</rss>

