Engine Details

Engines may have pre-set default arguments when executing the model fit call. For this type of model, the template of the fit calls are below:

parsnip

#| label: parsnip-reg
null_model() |> 
  set_engine("parsnip") |> 
  set_mode("regression") |> 
  translate()
#| label: parsnip-cls
null_model() |> 
  set_engine("parsnip") |> 
  set_mode("classification") |> 
  translate()

Prediction types

#| label: predict-types

parsnip:::get_from_env("null_model_predict") |>
  dplyr::select(mode, type)


Try the parsnip package in your browser

Any scripts or data that you put into this service are public.

parsnip documentation built on Jan. 11, 2026, 9:06 a.m.