Fit a support vector machine model
tl_fit_svm(
data,
formula,
is_classification = FALSE,
kernel = "radial",
cost = 1,
gamma = NULL,
degree = 3,
tune = FALSE,
tune_folds = 5,
...
)A fitted SVM model
A data frame containing the training data
A formula specifying the model
Logical indicating if this is a classification problem
Kernel function ("linear", "polynomial", "radial", "sigmoid")
Cost parameter (default: 1)
Gamma parameter for kernels (default: 1/ncol(data))
Degree for polynomial kernel (default: 3)
Logical indicating whether to tune hyperparameters (default: FALSE)
Number of folds for cross-validation during tuning (default: 5)
Additional arguments to pass to svm()