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.


Try the tidyclust package in your browser

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

tidyclust documentation built on July 3, 2024, 1:06 a.m.