model_categorical_svm
Arguments
- x
features/predictors used in prediction of outcome
- y
categorical outcome to predict
- kernel
SVM kernel passed to
e1071::svm()
Value
Fitted SVM model from e1071::svm().
See also
Other categorical model wrappers:
model_categorical_all(),
model_categorical_elastic_net(),
model_categorical_glm(),
model_categorical_lasso(),
model_categorical_ridge()
Examples
x <- iris[, c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")]
y <- iris$Species
model_categorical_svm(x, y)
#>
#> Call:
#> svm.default(x = x, y = y, kernel = kernel)
#>
#>
#> Parameters:
#> SVM-Type: C-classification
#> SVM-Kernel: linear
#> cost: 1
#>
#> Number of Support Vectors: 29
#>