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) : 'data' must be a data.frame,
not a matrix or an array"

Do you know why this might happen?

best,
salih

	[[alternative HTML version deleted]]

