我正在尝试以下代码:
> svm.model = svm(churn~., data = train)
> svm.pred = predict(svm.model,test)
> table(pred = svm.pred, true = test)
但是我收到以下错误消息:
Error in table(pred = svm.pred, true = test_data) : all arguments must have the same length
有人可以指出我的正确方向吗?
谢谢