r descr_models("logistic_reg", "LiblineaR")

Tuning Parameters

defaults <- 
  tibble::tibble(parsnip = c("penalty", "mixture"),
                 default = c("see below", "0"))

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

This model has r nrow(param) tuning parameters:

param$item

For LiblineaR models, the value for mixture can either be 0 (for ridge) or 1 (for lasso) but not other intermediate values. In the [LiblineaR::LiblineaR()] documentation, these correspond to types 0 (L2-regularized) and 6 (L1-regularized).

Be aware that the LiblineaR engine regularizes the intercept. Other regularized regression models do not, which will result in different parameter estimates.

Translation from parsnip to the original package

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

Preprocessing requirements



Examples

The "Fitting and Predicting with parsnip" article contains examples for logistic_reg() with the "LiblineaR" engine.

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 24, 2024, 5:14 p.m.