tests/testthat/_snaps/class-kap.md

kap errors with wrong weighting

Code
  kap(three_class, truth = "obs", estimate = "pred", weighting = 1)
Condition
  Error in `kap()`:
  ! `weighting` must be a single string, not the number 1.
Code
  kap(three_class, truth = "obs", estimate = "pred", weighting = "not right")
Condition
  Error in `kap()`:
  ! `weighting` must be "none", "linear", or "quadratic", not "not right".

work with class_pred input

Code
  kap_vec(cp_truth, cp_estimate)
Condition
  Error in `kap_vec()`:
  ! `truth` should not a <class_pred> object.


tidymodels/yardstick documentation built on April 13, 2025, 3:56 p.m.