Fitting XY Target

tar_fit_xy(
  object,
  x,
  y,
  control = parsnip::control_parsnip(),
  ...,
  tar_args = list()
)

Arguments

object

An object of class model_spec that has a chosen engine (via set_engine()).

x

A matrix, sparse matrix, or data frame of predictors. Only some models have support for sparse matrix input. See parsnip::get_encoding() for details. x should have column names.

y

A vector, matrix or data frame of outcome data.

control

A named list with elements verbosity and catch. See control_parsnip().

...

Not currently used; values passed here will be ignored. Other options required to fit the model should be passed using set_engine().

tar_args

Arguments passed to tar_target.

Value

A tar_target object.