tests/testthat/_snaps/class-fall_out.md

work with class_pred input

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

na_rm argument check

Code
  fall_out_vec(1, 1, na_rm = "yes")
Condition
  Error in `fall_out_vec()`:
  ! `na_rm` must be `TRUE` or `FALSE`, not the string "yes".

Binary returns NA with a warning when results are undefined (#98)

Code
  out <- fall_out_vec(truth, estimate)
Condition
  Warning:
  While computing binary `fall_out()`, no true negatives were detected (i.e. `true_negative + false_positive = 0`).
  Fall-out is undefined in this case, and `NA` will be returned.
  Note that 1 predicted negatives(s) actually occurred for the problematic event level, a

Multiclass returns averaged value with warning when results undefined (#98)

Code
  out <- fall_out_vec(truth, estimate)
Condition
  Warning:
  While computing multiclass `fall_out()`, some levels had no true negatives (i.e. `true_negative + false_positive = 0`).
  Fall-out is undefined in this case, and those levels will be removed from the averaged result.
  Note that the following number of predicted negatives actually occurred for each problematic event level:
  'a': 2


Try the yardstick package in your browser

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

yardstick documentation built on April 8, 2026, 1:06 a.m.