我一直在尝试构建SVM分类器,但是在使用predict
函数方面遇到了些困难。
> modelrbf<-ksvm(set,y,kernel="rbfdot",type="C-svc")
Using automatic sigma estimation (sigest) for RBF or laplace kernel
> predict(modelrbf,set[24,])
Error in .local(object, ...) : test vector does not match model !
我不知道是什么原因导致了错误:'测试向量与模型不匹配!'