Closed simonpcouch closed 4 months ago
eval_select(allow_empty = TRUE)
isn't quite what we want, as the error message doesn't give enough information:
> tailor_fit <- tailor() %>%
+ adjust_probability_threshold(.5) %>%
+ fit(
+ two_class_example,
+ outcome = contains("truth_WRONG"),
+ estimate = "predicted",
+ probabilities = tidyselect::contains("Class")
+ )
Error in `fit()`:
! Must select at least one item.
The first error message, when supplying a plain string, is helpful, but the latter two are a bit gnarly:
Created on 2024-06-04 with reprex v2.1.0