tests/testthat/_snaps/gen_additive_model.md

regression

Code
  xy_res <- fit_xy(reg_mod, x = mtcars[, 1:5], y = mtcars$mpg, control = ctrl)
Condition
  Error in `fit_xy()`:
  ! Please use `fit()` rather than `fit_xy()` to train generalized additive models with the "mgcv" engine.
  i See `?model_formula()` to learn more.

classification

Code
  xy_res <- fit_xy(cls_mod, x = two_class_dat[, 2:3], y = two_class_dat$Class,
  control = ctrl)
Condition
  Error in `fit_xy()`:
  ! Please use `fit()` rather than `fit_xy()` to train generalized additive models with the "mgcv" engine.
  i See `?model_formula()` to learn more.


Try the parsnip package in your browser

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

parsnip documentation built on April 4, 2025, 1:53 a.m.