[R] training svm

David Meyer david.meyer at wu-wien.ac.at
Sun Mar 18 23:53:37 CET 2007


Oldrich:

> 
> The columns in data passed to svm need to contain only numeral values.

This is not correct, svm() of course also accepts factors and then 
builds a model matrix similar to lm(). But it won't accept, e.g., 
character vectors.

> I simply assigned a number to each category of each feature. However,
> there must not be a column where all the numbers are equal 

yes, since the intercept is always included in svm models anyway.

Best
David



More information about the R-help mailing list