0

我正在尝试这段代码:

> 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

谁能指出我正确的方向,好吗?

谢谢

4

0 回答 0