Displaying 1 result from an estimated 1 matches for "rsvm_output".
Did you mean:
rhv_output
2008 Feb 05
0
Uninformative error msgs w/ svm.default - Error in svm.default ... y must be a vector or a factor -
...ctor w/ 2 levels "-1","1": 2 2 2 2 2 1 1 1 1 1
>
> m.cl.f
[1] 1 1 1 1 1 -1 -1 -1 -1 -1
Levels: -1 1
> mode(m.cl.f)
[1] "numeric"
the rSVM function is called as such (it is a wrapper for svm in e1071, which then calls low-level svm.default ) -
> rsvm_output <- RSVM(x=svm_num_mat, y=m.cl.f, ladder=laddy, CVtype="LOO" )
Error in svm.default(xTrain[, SelInd], yTrain, scale = F, type = "C-classification", :
y must be a vector or a factor.
....the 'laddy' variable just specifies a recursive parameter for the overlying...