<?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 set a class as a Positive class in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-set-a-class-as-a-Positive-class/m-p/360971#M5355</link>
    <description>&lt;P&gt;In the Enterprise Miner Reference Help, Model Comparison node chapter, the section&amp;nbsp;&lt;A href="#p1lo4a0h1pgnwhn1jdz8e2pnxl16" target="_blank"&gt;Comparing Models with Binary Targets&lt;/A&gt;&amp;nbsp;gives a nice chart showing what exactly these rates represent (shown below, but not formatted well). &amp;nbsp;It mentions that typically the value 1 is treated as the target event, and 0 as the non-event. &amp;nbsp;This is controlled by the Order that is set for the target variable in the Input Data node or a Metadata node. For a binary target, the order by default is Descending, which means the first value when sorting the target levels in descending order is used as the event (hence 1 if values are 0 and 1). &amp;nbsp;Hope that helps...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Classification Measures&lt;/H3&gt;
&lt;H3&gt;Binary targets are targets whose states can be classified as event and non-event. Typically, event is associated with a value of 1 for the target variable, and non-event is associated with a value of 0 for the target variable. The following table describes the predictive relationships between event and non-event.&lt;/H3&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TH class="xis-verticalTop" align="left"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TH&gt;
&lt;TH class="xis-verticalTop" align="left"&gt;
&lt;P&gt;&amp;nbsp;Predicted Non-Event&lt;/P&gt;
&lt;/TH&gt;
&lt;TH class="xis-verticalTop" align="left"&gt;
&lt;P&gt;&amp;nbsp;Predicted Event&lt;/P&gt;
&lt;/TH&gt;
&lt;TH class="xis-verticalTop" align="left"&gt;
&lt;P&gt;&amp;nbsp;Total Actual Probability&lt;/P&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;Non-Event&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;A (true negative)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;B (false positive)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;(A + B) / (A + B + C + D )&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="left"&gt;
&lt;P&gt;Event&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;C (false negative)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;D (true positive)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;(C + D) / (A + B + C + D )&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;Total Predicted&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;A + C&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;B + D&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;A + B + C + D&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; The following classification measures are derived from the relationships in the table:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Classification (Accuracy) Rate: 100 * (A + D) / (A + B + C + D)&lt;/LI&gt;
&lt;LI&gt;Misclassification Rate: 100 * (1 - ((A + D) / (A + B + C + D)))&lt;/LI&gt;
&lt;LI&gt;Sensitivity (True Positive Rate): 100 * D / (C + D)&lt;/LI&gt;
&lt;LI&gt;Specificity (True Negative Rate): 100 * A / (A + B)&lt;/LI&gt;
&lt;LI&gt;1 – Specificity (False Positive Rate): 100 * B / (A + B)&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 24 May 2017 00:02:13 GMT</pubDate>
    <dc:creator>WendyCzika</dc:creator>
    <dc:date>2017-05-24T00:02:13Z</dc:date>
    <item>
      <title>How to set a class as a Positive class</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-set-a-class-as-a-Positive-class/m-p/360957#M5354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am performing analysis of SVM, Decision Trees, Neural Network and Random Forest in EM and getting True Positve Rate, False Positive Rate etc for each of these 4 algos, I have a binary target variable called category with 1 for allergic and 0 for non allergic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know roughly that if i get TPR then it means allergic and FPR means false alarm of non allergic treated as allergic. (Dont know whether I am right or wrong)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could anyone tell me how can i declare allergic =1 as my positive class so that I can say for sure that this definitly means allergic.&lt;/P&gt;&lt;P&gt;And where should I declare this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 23:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-set-a-class-as-a-Positive-class/m-p/360957#M5354</guid>
      <dc:creator>geniusgenie</dc:creator>
      <dc:date>2017-05-23T23:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a class as a Positive class</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-set-a-class-as-a-Positive-class/m-p/360971#M5355</link>
      <description>&lt;P&gt;In the Enterprise Miner Reference Help, Model Comparison node chapter, the section&amp;nbsp;&lt;A href="#p1lo4a0h1pgnwhn1jdz8e2pnxl16" target="_blank"&gt;Comparing Models with Binary Targets&lt;/A&gt;&amp;nbsp;gives a nice chart showing what exactly these rates represent (shown below, but not formatted well). &amp;nbsp;It mentions that typically the value 1 is treated as the target event, and 0 as the non-event. &amp;nbsp;This is controlled by the Order that is set for the target variable in the Input Data node or a Metadata node. For a binary target, the order by default is Descending, which means the first value when sorting the target levels in descending order is used as the event (hence 1 if values are 0 and 1). &amp;nbsp;Hope that helps...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Classification Measures&lt;/H3&gt;
&lt;H3&gt;Binary targets are targets whose states can be classified as event and non-event. Typically, event is associated with a value of 1 for the target variable, and non-event is associated with a value of 0 for the target variable. The following table describes the predictive relationships between event and non-event.&lt;/H3&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TH class="xis-verticalTop" align="left"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TH&gt;
&lt;TH class="xis-verticalTop" align="left"&gt;
&lt;P&gt;&amp;nbsp;Predicted Non-Event&lt;/P&gt;
&lt;/TH&gt;
&lt;TH class="xis-verticalTop" align="left"&gt;
&lt;P&gt;&amp;nbsp;Predicted Event&lt;/P&gt;
&lt;/TH&gt;
&lt;TH class="xis-verticalTop" align="left"&gt;
&lt;P&gt;&amp;nbsp;Total Actual Probability&lt;/P&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;Non-Event&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;A (true negative)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;B (false positive)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;(A + B) / (A + B + C + D )&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="left"&gt;
&lt;P&gt;Event&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;C (false negative)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;D (true positive)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;(C + D) / (A + B + C + D )&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;Total Predicted&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;A + C&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;B + D&lt;/P&gt;
&lt;/TD&gt;
&lt;TD align="left"&gt;
&lt;P&gt;&amp;nbsp;A + B + C + D&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; The following classification measures are derived from the relationships in the table:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Classification (Accuracy) Rate: 100 * (A + D) / (A + B + C + D)&lt;/LI&gt;
&lt;LI&gt;Misclassification Rate: 100 * (1 - ((A + D) / (A + B + C + D)))&lt;/LI&gt;
&lt;LI&gt;Sensitivity (True Positive Rate): 100 * D / (C + D)&lt;/LI&gt;
&lt;LI&gt;Specificity (True Negative Rate): 100 * A / (A + B)&lt;/LI&gt;
&lt;LI&gt;1 – Specificity (False Positive Rate): 100 * B / (A + B)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 24 May 2017 00:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-set-a-class-as-a-Positive-class/m-p/360971#M5355</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2017-05-24T00:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a class as a Positive class</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-set-a-class-as-a-Positive-class/m-p/361000#M5356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply which is very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cleared my concept further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 03:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-set-a-class-as-a-Positive-class/m-p/361000#M5356</guid>
      <dc:creator>geniusgenie</dc:creator>
      <dc:date>2017-05-24T03:05:20Z</dc:date>
    </item>
  </channel>
</rss>

