library(e1071)
mymodel <- svm(writeoff~.,data=d,kernel="linear",scale = TRUE)
writeoff_pred <- predict(mymodel,c)
当我使用上面的代码时,我得到了一条错误消息,告诉我:
Error in newdata[, object$scaled, drop = FALSE] :
(subscript) logical subscript too long
我该如何解决?