logistic_reg
is a way to generate a specification of a model
before fitting and allows the model to be created using
different packages in R, Stan, or via Spark. The main arguments for the
model are:
regularization
: The total amount of regularization
in the model. Note that this must be zero for some engines.
mixture
: The proportion of L2 regularization in
the model. Note that this will be ignored for some engines.
These arguments are converted to their specific names at the
time that the model is fit. Other options and argument can be
set using the others
argument. If left to their defaults
here (NULL
), the values are taken from the underlying model
functions.
If parameters need to be modified, this function can be used
in lieu of recreating the object from scratch.