set_engine

0th

Percentile

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.

Usage
set_engine(object, engine, ...)
Arguments
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 varying().

Value

An updated model specification.

Aliases
  • set_engine
Examples
# NOT RUN {
# 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")
# }
Documentation reproduced from package parsnip, version 0.1.1, License: GPL-2

Community examples

Looks like there are no examples yet.