-
Notifications
You must be signed in to change notification settings - Fork 66
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
Make balance = observations
work with strata
#364
Conversation
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.
Thank you! 🙌 Looks good!
I think the reason it does "slightly worse" in your reprex is because both are unstratified? The call to group_vfold_cv()
for calculating strata_rate
is missing the strata
argument. When we add that, we get a more fitting result.
Co-authored-by: Hannah Frick <[email protected]>
... 🤦 I edited my text, that is actively embarrassing 😆 |
@hfrick CI is passing now 😄 It strikes me that |
How about you don't send a PR until you're past your exam and fully recovered? 😄 🤝 |
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. |
Here's a draft implementation of how stratification might work with
balance = observations
forgroup_vfold_cv()
.Created on 2022-09-16 with reprex v2.0.2
I'm not 100% convinced this is the right way to do things; let me know if anything here seems wonky.
Addresses #317 (I'll say "fixed" when we have balance_prop as well).