tests/testthat/_snaps/predict.md

predict() errors for cluster spec

Code
  predict(spec)
Condition
  Error in `predict()`:
  ! This function requires a fitted model. Please use `fit()` on your cluster specification.

predict() errors for hier_clust() with missing args

Code
  hclust_fit %>% predict(mtcars)
Condition
  Error in `predict()`:
  ! Please specify either `num_clusters` or `cut_height`.

predict() errors for hier_clust() with k arg

Code
  hclust_fit %>% predict(mtcars, k = 3)
Condition
  Error in `predict()`:
  ! Using `k` argument is not supported. Please use `num_clusters` instead.

predict() errors for hier_clust() with h arg

Code
  hclust_fit %>% predict(mtcars, h = 3)
Condition
  Error in `predict()`:
  ! Using `h` argument is not supported. Please use `cut_height` instead.


Try the tidyclust package in your browser

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

tidyclust documentation built on Sept. 26, 2023, 1:08 a.m.