I am trying to use svm model from e1071 toolkit,
simply like
model <- svm(train_set,set_label,scale=FALSE)
and the original form of label for each instance is array like [0,0,0,0,0,1,0,0,0]
Yet from this I would get the error :
 Error in predict.svm(ret, xhold, decision.values = TRUE) : 
 test data does not match model !
Then if every label is transformed to just one integer, it is fine.
So is it that the function svm just does not take array as output label?
 
     
    