我如何解决plot.svm()中R中缺少公式的此错误

时间:2019-06-20 10:30:55

标签: r svm

我正在尝试绘制svm,但每次遇到此错误  “ plot.svm(Linearclassifier,training_set)中的错误:缺少公式。 调用:SVM_Function-> plot-> plot.svm“

Linearclassifier = svm(formula = diagnosis ~ ., data = training_set, type 
= 'C-classification', kernel = 'linear')

Linearprediction = predict(Linearclassifier, newdata = testing_set[-1])

plot(Linearclassifier,training_set )

0 个答案:

没有答案