Hello,

I'm using the e1071 library for SVM functions.

I can quickly train an SVM with:
svm(formula = label ~ ., data = testdata)

That works well.

I want to tune the parameters, so I tried:

tune.svm(label ~ ., data=testdata[1:2000, ], gamma=10^(-6:3), cost=10^(1:2))

THIS FAILS WITH AN ERROR:
'names' attribute [199] must be the same length as the vector [184]

I don't understand why this is happening.  Presumably, if the data is 
correct for training an SVM, then it should also be correct for the 
tune.svm function.

Can anyone help me solve this one?

Thanks!

	[[alternative HTML version deleted]]


