r descr_models("logistic_reg", "brulee")

Tuning Parameters

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

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

This model has r nrow(param) tuning parameter:

param$item

The use of the L1 penalty (a.k.a. the lasso penalty) does not force parameters to be strictly zero (as it does in packages such as glmnet). The zeroing out of parameters is a specific feature the optimization method used in those packages.

Other engine arguments of interest:

Translation from parsnip to the original package (classification)

logistic_reg(penalty = double(1)) %>% 
  set_engine("brulee") %>% 
  translate()


Case weights


References



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