R中包e1071中内核函数的默认参数是什么

时间:2017-05-10 08:50:40

标签: r

我尝试了解内核函数。我想知道R包e1071中内核函数的默认参数是什么。谢谢。

1 个答案:

答案 0 :(得分:1)

如果你输入?svm,你会得到下面的输出( - > radial)。

## S3 method for class 'formula'
svm(formula, data = NULL, ..., subset, na.action =
na.omit, scale = TRUE)
## Default S3 method:
svm(x, y = NULL, scale = TRUE, type = NULL, kernel =
"radial", degree = 3, gamma = if (is.vector(x)) 1 else 1 / ncol(x),
coef0 = 0, cost = 1, nu = 0.5,
class.weights = NULL, cachesize = 40, tolerance = 0.001, epsilon = 0.1,
shrinking = TRUE, cross = 0, probability = FALSE, fitted = TRUE,
..., subset, na.action = na.omit)