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 string.
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.


Try the yardstick package in your browser

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

yardstick documentation built on June 22, 2024, 7:07 p.m.