📜  如何在 r 中构建 svm 模型 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:01.732000             🧑  作者: Mango

代码示例1
library(e1071)
svm_model <- svm(y ~ ., data = ..., 
                 type = "C-classification", kernel = "polynomial", degree = 3, 
                 cost = 50, gamma = 0.01, coef0 = 1)
summary(svm_model)