Skip to content
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

exclude apparent resample when summarizing metrics #729

Merged
merged 3 commits into from
Oct 2, 2023
Merged

exclude apparent resample when summarizing metrics #729

merged 3 commits into from
Oct 2, 2023

Conversation

simonpcouch
Copy link
Contributor

Closes #714. :)

Another approach here would be not to calculate metrics from that resample at all, returning early from append_metrics() with a 0-row tibble. This feels somewhat user-hostile, though also we'd need some way to attach the resample id "Apparent" and .config entry to that tibble—dropping NAs in the rest of a 1-row tibble could be an option, but collect_metrics() would still need to know what to know about the NAs in that case. This PRs opts to make estimate_tune_results() (and thus collect_metrics() and compute_metrics()) aware of apparent resamples, still calculating metrics for them as normal but excluding them from summarizations.

Copy link
Member

@topepo topepo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 No issues

@topepo topepo merged commit 637e923 into main Oct 2, 2023
9 checks passed
@topepo topepo deleted the fix-714 branch October 2, 2023 14:34
@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

don't use resub estimate when collecting metrics
2 participants