Displaying 1 result from an estimated 1 matches for "useformula".
Did you mean:
geeformula
2010 May 13
1
tune svm
...and gamma for a landsat image
classification, but I get an error and I can't understand it.
I write this:
> tune(svm, Class~., data = mdt01bis, ranges = list(gamma = 2^(-15:3), cost
> = 2^(-5:15)))
and R gives:
Error en predict.svm(model, if (!is.null(validation.x)) validation.x else if
(useFormula) data[-train.ind[[sample]], :
test data does not match model !
The matrix is as follows, with 720 rows and 4 categories in column Class
B1 B2 B3 B4 B5 B6 Class
[1,] "0.0450" "0.0599" "0.1169" "0.1820" "0.3040&qu...