It is kind of weird that roc_curve() would return NA in the case of na_rm = FALSE and missing values, right?
Because we otherwise return a full tibble, so that isn't type stable.
I think this inconsistency probably already existed, but I think we should open an issue about this for all the curve functions. I imagine we should probably just error if na_rm = FALSE for a curve function and we actually detect missing values? That would be a nice way to take advantage of the fact that we have inlined the missing value handling into the metric function itself!
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
It is kind of weird that
roc_curve()
would returnNA
in the case ofna_rm = FALSE
and missing values, right?Because we otherwise return a full tibble, so that isn't type stable.
I think this inconsistency probably already existed, but I think we should open an issue about this for all the curve functions. I imagine we should probably just error if
na_rm = FALSE
for a curve function and we actually detect missing values? That would be a nice way to take advantage of the fact that we have inlined the missing value handling into the metric function itself!_Originally posted by @DavisVaughan in https://github.com/tidymodels/yardstick/pull/337#discussion_r1031458686_