R-help,

I am trying to perform a basic anlaysis of the BreastCancer data from 
"mlbench" using the svm() function in "e1071".  I use the following code

library("e1071")
library("mlbench")

data(BreastCancer)
BC <- subset(BreastCancer, select=-Id)
pairs(BC)
model <- svm(Class ~ ., data=BC, cross=10)
## plot(model, BC, )
tobj <- tune.svm(Class ~ ., data=BC, gamma=seq(0.0001,0.2,length=3),
                 cost=seq(10,100,length=3))

...And here are the results from my session (with contextual information)

> system("uname -a")
Linux hmhuw015 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x86_64 
x86_64 x86_64 GNU/Linux
> version
               _ 
platform       x86_64-unknown-linux-gnu 
arch           x86_64 
os             linux-gnu 
system         x86_64, linux-gnu 
status 
major          2 
minor          8.1 
year           2008 
month          12 
day            22 
svn rev        47281 
language       R 
version.string R version 2.8.1 (2008-12-22)
> tobj <- tune.svm(Class ~ ., data=BC, gamma=seq(0.0001,0.2,length=3),
+                  cost=seq(1,100,length=3))
Error in names(ret2) <- rowns : 
  'names' attribute [70] must be the same length as the vector [68]

Sorry, but could someone tell me what the error is trying to get at? 

thanks,

Brandon


-----------------------------------------------------------
This e-mail was sent by GlaxoSmithKline Services Unlimited 
(registered in England and Wales No. 1047315), which is a 
member of the GlaxoSmithKline group of companies. The 
registered address of GlaxoSmithKline Services Unlimited 
is 980 Great West Road, Brentford, Middlesex TW8 9GS.
-----------------------------------------------------------

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to