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, ...)

## Arguments

object A model specification. 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 varying().

## Value

An updated model specification.

## Examples

# 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")#> Logistic Regression Model Specification (classification)
#>
#> Main Arguments:
#>   mixture = 1/3
#>
#> Engine-Specific Arguments:
#>   nlambda = 10
#>
#> Computational engine: glmnet
#>
#> Model fit template:
#> glmnet::glmnet(x = missing_arg(), y = missing_arg(), weights = missing_arg(),
#>     alpha = 1/3, nlambda = 10, family = "binomial")