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]]

______________________________________________
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