-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug fixes for percentile intervals on survival metrics #818
Conversation
tidymodels/rsample#465 includes a proposal for some rsample changes. I don't want to force an rsample release so we can keep this PR as-is and, if the rsample changes are ok, update this code later. |
@@ -210,6 +210,7 @@ export(is_recipe) | |||
export(is_workflow) | |||
export(last_fit) | |||
export(load_pkgs) | |||
export(maybe_choose_eval_time) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we exporting this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly future-proofing; I can see us needing this a lot inside of tune but also maybe finetune or future extensions. There's no harm in exporting and we've re-exported a fair number of functions that were originally internal.
This pull request 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. |
The initial implementation was only for purely dynamic metrics.
Changes:
quietly
argument tochoose_eval_time()
maybe_choose_eval_time()
) that runschoose_eval_time()
across the metrics in a metric set to get defaults for all metrics. If an integrated metric is in the set, all of the original evaluation times (from the tune object) are returned.eval_time
arguments through the missing bootstrap interval machinery.int_pctl()
Tests to come in extratests
note: the percentile intervals are calculated for each value of the
term
column (via agroup_by()
. It would greatly simplify things here if we expanded that to include a few other columns:.config
,.iter
, and.eval_time
. In fact, it might help users if we were to group byterm
andstarts_with(".")
. I'll start an issue for this in rsample.