[[1]]
<error/rlang_error>
Error in `metric_set()`:
! Failed to compute `sensitivity()`.
Caused by error in `dplyr::summarise()`:
! Problem while computing `.estimate = metric_fn(...)`.
---
Backtrace:
1. tibble(group = 1:15) %>% ...
15. yardstick (local) panel(., truth = mclass, estimate = mclass.pred, estimator = "macro")
16. base::mapply(...)
17. yardstick (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]])
Caused by error in `multiclass_checks()`:
! `truth` and `estimate` levels must be equivalent.
`truth`: N/A: No relevant content., Physical Activity, Possible Fatality, Potentially unlawful activity, Other claim content
`estimate`: N/A: No relevant content., Other claim content, Physical Activity, Possible Fatality, Potentially unlawful activity
---
Backtrace:
1. tibble(group = 1:15) %>% ...
34. yardstick (local) metric_fn(...)
35. yardstick::metric_vec_template(...)
36. yardstick:::validate_truth_estimate_checks(...)
38. yardstick:::validate_truth_estimate_types.factor(...)
40. yardstick:::multiclass_checks.factor(truth, estimate)