R/model_categorical_svm.R

Defines functions model_categorical_svm

Documented in model_categorical_svm

#' @title model_categorical_svm
#' @concept model_categorical
#' @param y categorical outcome to predict
#' @param x features/predictors used in prediction of outcome
#' @param kernel
#'
#' @return
#' @export
#' @import e1071 dplyr
#' @examples
model_categorical_svm <- function(x, y, kernel = "linear", ...) {
  x <- as.matrix(x)
  y <- as.factor(y)
  svm(y = y, x = x, kernel = kernel, ...)
}
epongpipat/eepR documentation built on June 5, 2024, 10:03 a.m.