<?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: SAS Enterprise Miner: SMOTE sampling with categorical variables in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Enterprise-Miner-SMOTE-sampling-with-categorical-variables/m-p/394760#M6009</link>
    <description>&lt;P&gt;The code you found uses the MODECLUS procedure which (as you pointed out) is intended for numerical data. &amp;nbsp;It also has the problem of not being able to scale to the size of typical data mining data sets. &amp;nbsp; The Cluster node in SAS Enterprise Miner does allow for using categorical variables in creating a cluster solution and is capable of handling large scale data. &amp;nbsp;Therefore, you might consider creating clusters with the Cluster node and then sampling from the segments it produces as desired to achieve a similar effect. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The challenge with including categorical variables in a cluster solution is that they are natural segmenting variables already -- having all their mass at a set of distinct points -- while the numerical variables are typically distributed across a much greater set of values which must then be grouped based on centroids. &amp;nbsp;The resulting clusters, however, typically do not break cleanly based on the categorical variable levels and might produce a result that is more difficult to explain. &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Doug&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 17:16:45 GMT</pubDate>
    <dc:creator>DougWielenga</dc:creator>
    <dc:date>2017-09-11T17:16:45Z</dc:date>
    <item>
      <title>SAS Enterprise Miner: SMOTE sampling with categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Enterprise-Miner-SMOTE-sampling-with-categorical-variables/m-p/394037#M5980</link>
      <description>Hi everybody,&lt;BR /&gt;&lt;BR /&gt;Do you know a way to perform SMOTE sampling in SAS Enterprise Miner with categorical variables ?&lt;BR /&gt;&lt;BR /&gt;I have found a SAS code doing this task:&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/3282-2015.zip" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/3282-2015.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is that my data set contains categorical explanatory variables and the code is only adapted to numeric variables.&lt;BR /&gt;&lt;BR /&gt;However, I know that categorical variables could be handled (&lt;A href="https://www.jair.org/media/953/live-953-2037-jair.pdf" target="_blank"&gt;https://www.jair.org/media/953/live-953-2037-jair.pdf&lt;/A&gt;) for example using the suited R package SMOTE.&lt;BR /&gt;&lt;BR /&gt;If you have a code example in SAS to perform such task, I would really appreciate to see how it works.&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your help,&lt;BR /&gt;Marco</description>
      <pubDate>Thu, 07 Sep 2017 20:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Enterprise-Miner-SMOTE-sampling-with-categorical-variables/m-p/394037#M5980</guid>
      <dc:creator>mmaccora</dc:creator>
      <dc:date>2017-09-07T20:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise Miner: SMOTE sampling with categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Enterprise-Miner-SMOTE-sampling-with-categorical-variables/m-p/394760#M6009</link>
      <description>&lt;P&gt;The code you found uses the MODECLUS procedure which (as you pointed out) is intended for numerical data. &amp;nbsp;It also has the problem of not being able to scale to the size of typical data mining data sets. &amp;nbsp; The Cluster node in SAS Enterprise Miner does allow for using categorical variables in creating a cluster solution and is capable of handling large scale data. &amp;nbsp;Therefore, you might consider creating clusters with the Cluster node and then sampling from the segments it produces as desired to achieve a similar effect. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The challenge with including categorical variables in a cluster solution is that they are natural segmenting variables already -- having all their mass at a set of distinct points -- while the numerical variables are typically distributed across a much greater set of values which must then be grouped based on centroids. &amp;nbsp;The resulting clusters, however, typically do not break cleanly based on the categorical variable levels and might produce a result that is more difficult to explain. &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Doug&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Enterprise-Miner-SMOTE-sampling-with-categorical-variables/m-p/394760#M6009</guid>
      <dc:creator>DougWielenga</dc:creator>
      <dc:date>2017-09-11T17:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise Miner: SMOTE sampling with categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Enterprise-Miner-SMOTE-sampling-with-categorical-variables/m-p/546167#M7741</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10859"&gt;@DougWielenga&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The code you found uses the MODECLUS procedure which (as you pointed out) is intended for numerical data. &amp;nbsp;It also has the problem of not being able to scale to the size of typical data mining data sets. &amp;nbsp; The Cluster node in SAS Enterprise Miner does allow for using categorical variables in creating a cluster solution and is capable of handling large scale data. &amp;nbsp;Therefore, you might consider creating clusters with the Cluster node and then sampling from the segments it produces as desired to achieve a similar effect. &amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hey Doug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you explain in more details how can we use the output of the cluster node to include it into SMOTE SAS code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I don't understand the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this article about the method that allows categorical variables but there is only pseudocode provided:&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/3483-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/3483-2015.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how it could be implemented using SAS code?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 14:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Enterprise-Miner-SMOTE-sampling-with-categorical-variables/m-p/546167#M7741</guid>
      <dc:creator>MBRACH</dc:creator>
      <dc:date>2019-03-26T14:33:41Z</dc:date>
    </item>
  </channel>
</rss>

