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



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.