r descr_models("multinom_reg", "spark")

Tuning Parameters

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

param <-
  multinom_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

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

Preprocessing requirements



By default, ml_multinom_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



Try the parsnip package in your browser

Any scripts or data that you put into this service are public.

parsnip documentation built on Aug. 18, 2023, 1:07 a.m.