R-SVM-plot踩坑记录

2023-07-29,,

并非所有的 svm 类型都支持plot.svm- 只有分类方法支持,而回归不支持。

所以代码应该svm_fit <- svm(factor(y)~x1+x2,data = df, kernel = "linear", cost = 10)

需要factor一下。

R-SVM-plot踩坑记录的相关教程结束。

《R-SVM-plot踩坑记录.doc》

下载本文的Word格式文档,以方便收藏与打印。