r descr_models("logistic_reg", "spark")

Tuning Parameters

defaults <- 
  tibble::tibble(parsnip = c("penalty", "mixture"),
                 default = c("0.0", "0.0"))

param <-
  logistic_reg() %>% 
  set_engine("spark") %>% 
  make_parameter_list(defaults)

This model has r nrow(param) tuning parameters:

param$item

For penalty, the amount of regularization includes both the L1 penalty (i.e., lasso) and the L2 penalty (i.e., ridge or weight decay). As for mixture:

Translation from parsnip to the original package

logistic_reg(penalty = double(1), mixture = double(1)) %>% 
  set_engine("spark") %>% 
  translate()

Preprocessing requirements



By default, ml_logistic_regression() uses the argument standardization = TRUE to center and scale the data.

Case weights


Note that, for spark engines, the case_weight argument value should be a character string to specify the column with the numeric case weights.

Other details


References



topepo/parsnip documentation built on April 16, 2024, 3:23 a.m.