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.
Steve Lianoglou
2009-Jul-08 01:45 UTC
[R] ksvm question -- help! cannot get program to run...
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