tests/testthat/_snaps/fiting.md

fit and fit_xy errors if outcome is provided

Code
  k_means(num_clusters = 5) %>% fit_xy(mtcars, y = mtcars$mpg)
Condition
  Error in `x_x()`:
  ! Outcomes are not used in <cluster_spec> objects.
Code
  workflows::workflow(mpg ~ ., km) %>% fit(mtcars)
Condition
  Error in `x_x()`:
  ! Outcomes are not used in <cluster_spec> objects.


EmilHvitfeldt/celery documentation built on Jan. 31, 2025, 7:04 p.m.