Declare a computational engine and specific arguments
set_engine()
is used to specify which package or system will be used
to fit the model, along with any arguments specific to that software.
set_engine(object, engine, ...)
object |
A model specification. |
engine |
A character string for the software that should be used to fit the model. This is highly dependent on the type of model (e.g. linear regression, random forest, etc.). |
... |
Any optional arguments associated with the chosen computational
engine. These are captured as quosures and can be |
An updated model specification.
# First, set general arguments using the standardized names mod <- logistic_reg(mixture = 1/3) %>% # now say how you want to fit the model and another other options set_engine("glmnet", nlambda = 10) translate(mod, engine = "glmnet")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.