tests/testthat/_snaps/predict.md

predict method errors informatively

Code
  predict(st_reg_1, penguins_test)
Condition
  Error in `predict()`:
  ! To predict with a stacked ensemble, the supplied data stack must be evaluated with `blend_predictions()` and its member models fitted with `fit_members()` to predict on new data.
Code
  predict(st_reg_1_, penguins_test)
Condition
  Error in `predict()`:
  ! The supplied model stack hasn't been fitted yet.  Please fit the necessary members with fit_members() to predict on new data.
Code
  predict(st_reg_1__, penguins_test, members = "for sure!")
Condition
  Error in `predict()`:
  ! Element members needs to inherit from `logical`, but its class is `character`.
Code
  predict(st_reg_1__, penguins_test, opts = TRUE)
Condition
  Error in `predict()`:
  ! Element opts needs to inherit from `list`, but its class is `logical`.


Try the stacks package in your browser

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

stacks documentation built on June 10, 2025, 9:14 a.m.