Re: [R] help with tune.svm() e1071

2011-05-25 Thread Steve Lianoglou
Hi, On Wed, May 25, 2011 at 4:54 AM, Salih Tuna wrote: > Hi, > I am trying to use tune.svm in e1071 package. > the command i use is > > tobj <- tune.svm(labels, data= data, cost = 10^(1:2)) The first few arguments from the method signature for tune.svm is: tune.svm(x, y = NULL, data = NULL, ...

[R] help with tune.svm() e1071

2011-05-25 Thread Salih Tuna
Hi, I am trying to use tune.svm in e1071 package. the command i use is tobj <- tune.svm(labels, data= data, cost = 10^(1:2)) Should the last column of the 'data' contain the labels as well? I want to use the linear kernel. But it gives me the error "Error in model.frame.default(formula, data) : '