#| child: aaa.Rmd
#| include: false

r descr_models("logistic_reg", "brulee")

Tuning Parameters

#| label: brulee-param-info
#| echo: false
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:

#| label: brulee-param-list
#| echo: false
#| results: asis
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)

#| label: brulee-cls
logistic_reg(penalty = double(1)) |> 
  set_engine("brulee") |> 
  translate()
#| child: template-makes-dummies.Rmd
#| child: template-same-scale.Rmd

Case weights

#| child: template-no-case-weights.Rmd

References



Try the parsnip package in your browser

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

parsnip documentation built on June 8, 2025, 12:10 p.m.