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

align machinery for ".by" and ".eval_time" grouping #700

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

simonpcouch
Copy link
Contributor

Closes #699. The diff of #684 looks quite clean but it actually obscures a bad merge upstream with #619. In the first few lines of estimate_tune_results(), #619 initialized a group_cols object, and #684 later overwrote it. This PR moves the logic for additionally summarizing by ".by" into the helper used for ".eval_time" and then uses the pattern from #619 otherwise.

Note that this changes the column ordering for .eval_time relative to .metric and .estimator in collect_metrics(). We don't test that here or in extratests, so I didn't work around it, but we can.

@topepo
Copy link
Member

topepo commented Jul 18, 2023

Closes #702

@topepo topepo merged commit 8fc2328 into main Jul 18, 2023
@topepo topepo deleted the group-cols-699 branch July 18, 2023 12:51
@github-actions
Copy link

github-actions bot commented Aug 2, 2023

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 Aug 2, 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.

censored: collect_metrics() omits column .eval_time from fit_resamples()
2 participants