Re: [R] Nominal variables in SVM?

2009-08-13 Thread Bernd Bischl
Noah Silverman wrote: Thanks for all the suggestions. My data was loaded in from a csv file with about 80 columns (3 of these columns are nominal) no specific settings for the nominal columns. Currently, if I call svm (e1071), I get an error about the nominal column. Do I need to tell R to

[R] Nominal variables in SVM?

2009-08-12 Thread Noah Silverman
Hi, The answers to my previous question about nominal variables has lead me to a more important question. What is the best practice way to feed nominal variable to an SVM. For example: color = (red, blue, green) I could translate that into an index so I wind up with color= (1,2,3) But my

Re: [R] Nominal variables in SVM?

2009-08-12 Thread Steve Lianoglou
Hi, On Aug 12, 2009, at 2:53 PM, Noah Silverman wrote: Hi, The answers to my previous question about nominal variables has lead me to a more important question. What is the best practice way to feed nominal variable to an SVM. For example: color = (red, blue, green) I could translate

Re: [R] Nominal variables in SVM?

2009-08-12 Thread Noah Silverman
That makes sense. I my data is already nominal, I need to expand a single column into several binary ones. Is there an easy function to do this in R, or do I need to create something from scratch? (If I have to create my own, any suggestions?) Thanks! -N On 8/12/09 1:55 PM, Steve

Re: [R] Nominal variables in SVM?

2009-08-12 Thread Bernd Bischl
Noah Silverman wrote: That makes sense. I my data is already nominal, I need to expand a single column into several binary ones. Is there an easy function to do this in R, or do I need to create something from scratch? (If I have to create my own, any suggestions?) Thanks! -N Hi Noah,

Re: [R] Nominal variables in SVM?

2009-08-12 Thread Erik Iverson
Silverman Sent: Wednesday, August 12, 2009 3:59 PM Cc: r help Subject: Re: [R] Nominal variables in SVM? That makes sense. I my data is already nominal, I need to expand a single column into several binary ones. Is there an easy function to do this in R, or do I need to create something from scratch

Re: [R] Nominal variables in SVM?

2009-08-12 Thread Achim Zeileis
On Wed, 12 Aug 2009, Noah Silverman wrote: Hi, The answers to my previous question about nominal variables has lead me to a more important question. What is the best practice way to feed nominal variable to an SVM. As some of the previous posters have already indicated: The data structure

Re: [R] Nominal variables in SVM?

2009-08-12 Thread Noah Silverman
Thanks for all the suggestions. My data was loaded in from a csv file with about 80 columns (3 of these columns are nominal) no specific settings for the nominal columns. Currently, if I call svm (e1071), I get an error about the nominal column. Do I need to tell R to change the column to a

Re: [R] Nominal variables in SVM?

2009-08-12 Thread Noah Silverman
OR, as Steve suggested in a previous post, would it make more sense in training an SVM to convert a single nominal column into a series of binary columns? color = (red, blue, green) So, imagine if the features for your examples were color and height, your feature matrix for N examples

Re: [R] Nominal variables in SVM?

2009-08-12 Thread Erik Iverson
Subject: Re: [R] Nominal variables in SVM? Thanks for all the suggestions. My data was loaded in from a csv file with about 80 columns (3 of these columns are nominal) no specific settings for the nominal columns. Currently, if I call svm (e1071), I get an error about the nominal column. Do I need