<?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: Loading svm-light files in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Loading-svm-light-files-in-SAS/m-p/160978#M263347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Tom. I will give your solution a try very soon. And to your point, I should have elaborated on the data more. This data set is a 20000 x 3231961 matrix that categorizes websites as either benign or malicious. Each row represents a website and the +3 million columns describe website features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The first column of +1/-1 (the response) is there for classification purposes. This indicates whether the website is malicious or benign&lt;/LI&gt;&lt;LI&gt;The remaining columns are a combination of categorical {0,1} and real-valued features.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 17:28:54 GMT</pubDate>
    <dc:creator>ggramajo</dc:creator>
    <dc:date>2013-12-02T17:28:54Z</dc:date>
    <item>
      <title>Loading svm-light files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-svm-light-files-in-SAS/m-p/160976#M263345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear SAS community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;My issue&lt;/SPAN&gt;: I am trying to upload a data file of type svm-light. I have attached an example of such a file (which I downloaded from the UCI Machine Learning Dataset). I would like to upload such a file into SAS but I am at a loss as to how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;What I intend to do with the &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;data set&lt;/SPAN&gt;: I would like to analyze this dataset using GAM. I pretty sure the data is provided in this svm-light form because the data matrix is extremely sparse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I googled this topic in various ways and could not find a solution. I sincerely apologize if this has already been solved, and I missed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 16:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-svm-light-files-in-SAS/m-p/160976#M263345</guid>
      <dc:creator>ggramajo</dc:creator>
      <dc:date>2013-12-02T16:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loading svm-light files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-svm-light-files-in-SAS/m-p/160977#M263346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what that data represents , but you could read it into a vertical table pretty easily.&lt;/P&gt;&lt;P&gt;I am not sure what the first column represents, since it seems to +/- in the front I will call it OFFSET.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The rest appear to be index:value pairs.&amp;nbsp; You can read those by using space and colon as the delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length row col value offset 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile 'Day120.svm' dlm=' :' truncover lrecl=1000000 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input offset @ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; row+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do until (col=.) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input col value @ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if col ne . then output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 17:14:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-svm-light-files-in-SAS/m-p/160977#M263346</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-12-02T17:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading svm-light files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-svm-light-files-in-SAS/m-p/160978#M263347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Tom. I will give your solution a try very soon. And to your point, I should have elaborated on the data more. This data set is a 20000 x 3231961 matrix that categorizes websites as either benign or malicious. Each row represents a website and the +3 million columns describe website features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The first column of +1/-1 (the response) is there for classification purposes. This indicates whether the website is malicious or benign&lt;/LI&gt;&lt;LI&gt;The remaining columns are a combination of categorical {0,1} and real-valued features.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 17:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-svm-light-files-in-SAS/m-p/160978#M263347</guid>
      <dc:creator>ggramajo</dc:creator>
      <dc:date>2013-12-02T17:28:54Z</dc:date>
    </item>
  </channel>
</rss>

