<?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 Scoring undersampled imbalanced dataset in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-undersampled-imbalanced-dataset/m-p/262730#M3866</link>
    <description>&lt;P&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;I am working on an imbalanced dataset with 15% of the cases belonging to the class of interest. I have used a stratified sample on training and validation set with equal sizes to overcome the strong bias of the model towards the majority class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now having troubles scoring my&amp;nbsp;model as I would like to use a test set with the original proportions (15%-85%).&amp;nbsp;I have tried to edit the target profile assigning those prior proportions from the "Score using test dataset" node in the attached figure, but when&lt;SPAN class="text_exposed_show"&gt; I run the the "Score[apply]" node it will still use a score set with equal probabilities (I can easily see this from the&amp;nbsp;Insight node).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="text_exposed_show"&gt;&lt;P&gt;Does anybody know how to overcome this problem? I am using SAS Enterprise Miner in SAS 9.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;All help greatly appreciated.&lt;/DIV&gt;&lt;DIV class="text_exposed_show"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="text_exposed_show"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2678iA48A774E4DC953F2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 10 Apr 2016 10:43:30 GMT</pubDate>
    <dc:creator>a_bloch</dc:creator>
    <dc:date>2016-04-10T10:43:30Z</dc:date>
    <item>
      <title>Scoring undersampled imbalanced dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-undersampled-imbalanced-dataset/m-p/262730#M3866</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;I am working on an imbalanced dataset with 15% of the cases belonging to the class of interest. I have used a stratified sample on training and validation set with equal sizes to overcome the strong bias of the model towards the majority class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now having troubles scoring my&amp;nbsp;model as I would like to use a test set with the original proportions (15%-85%).&amp;nbsp;I have tried to edit the target profile assigning those prior proportions from the "Score using test dataset" node in the attached figure, but when&lt;SPAN class="text_exposed_show"&gt; I run the the "Score[apply]" node it will still use a score set with equal probabilities (I can easily see this from the&amp;nbsp;Insight node).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="text_exposed_show"&gt;&lt;P&gt;Does anybody know how to overcome this problem? I am using SAS Enterprise Miner in SAS 9.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;All help greatly appreciated.&lt;/DIV&gt;&lt;DIV class="text_exposed_show"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="text_exposed_show"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2678iA48A774E4DC953F2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Apr 2016 10:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-undersampled-imbalanced-dataset/m-p/262730#M3866</guid>
      <dc:creator>a_bloch</dc:creator>
      <dc:date>2016-04-10T10:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring undersampled imbalanced dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-undersampled-imbalanced-dataset/m-p/262744#M3868</link>
      <description>&lt;P&gt;I'm just a touch confused and possibly out of my depths here, but from what I understand of scoring - the prior probabilities do not come into play even in a tree diagram. &amp;nbsp;The rules are applied the same regardless of the proportions in the sample.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you manually create your partitioned data or use a prior probability setting to set up the 50/50% data sets?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 16:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-undersampled-imbalanced-dataset/m-p/262744#M3868</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-10T16:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring undersampled imbalanced dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-undersampled-imbalanced-dataset/m-p/262981#M3870</link>
      <description>&lt;P&gt;Thank you Reeza.&lt;BR /&gt;I&amp;nbsp;created a 50-50 sample from th Input Node by going on Stratification--&amp;gt;Options--&amp;gt; Equal Size.&lt;BR /&gt;This appears to work fine when a Tree is run, however problems arise when I try the scoring as I&amp;nbsp;would like to use a test set with the original proportions.&lt;BR /&gt;Finally I have&amp;nbsp;created 2 files in SQL, one for training and validation (with 50-50 proportions) and one for test with the original proportions.&amp;nbsp;I simply create a&amp;nbsp;different partition as I take my test set from another file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also noticed that - when I created the 50-50 sample from the original file - the decision tree worked fine and gave me a nice confusion matrix but neural nets and regression ignored the equal size option resulting in&amp;nbsp;a confusion matrix with 14%&amp;nbsp;of the observations&amp;nbsp;belonging to the class of interest. I now don't have this problem anymore as I solved it manually but do you know if&amp;nbsp;the&amp;nbsp;&lt;SPAN&gt;Stratification--&amp;gt;Options--&amp;gt; Equal Size normally presents such issues?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;&lt;BR /&gt;a_bloch&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 18:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-undersampled-imbalanced-dataset/m-p/262981#M3870</guid>
      <dc:creator>a_bloch</dc:creator>
      <dc:date>2016-04-11T18:03:28Z</dc:date>
    </item>
  </channel>
</rss>

