r descr_models("multinom_reg", "keras")

Tuning Parameters

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

param <-
  multinom_reg() %>% 
  set_engine("keras") %>% 
  make_parameter_list(defaults)

This model has one tuning parameter:

param$item

For penalty, the amount of regularization is only L2 penalty (i.e., ridge or weight decay).

Translation from parsnip to the original package

multinom_reg(penalty = double(1)) %>% 
  set_engine("keras") %>% 
  translate()

[keras_mlp()] is a parsnip wrapper around keras code for neural networks. This model fits a linear regression as a network with a single hidden unit.

Preprocessing requirements



Case weights


Saving fitted model objects


Examples

The "Fitting and Predicting with parsnip" article contains examples for multinom_reg() with the "keras" 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 Aug. 18, 2023, 1:07 a.m.