[R] ksvm question -- help! cannot get program to run...
Steve Lianoglou
mailinglist.honeypot at gmail.com
Wed Jul 8 03:45:49 CEST 2009
Hi,
On Jul 7, 2009, at 6:44 PM, Michael wrote:
> What's wrong? Very sad about this...
>
> model <- ksvm(x=mytraindata[, -1], y=factor(mytraindata[, 1]),
> prob.model=T)
> Error in .local(x, ...) : x and y don't match.
Same problem you're having with the svm in e1071: I bet your data is
wonky.
split your data into the x and y vars first and inspect it to make
sure that they're "clean."
-steve
--
Steve Lianoglou
Graduate Student: Physiology, Biophysics and Systems Biology
Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos
More information about the R-help
mailing list