tidymodels / tidymodels/rsample
`group_bootstraps()` takes unusually long when there are rare classes
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 343
- Forks
- 67
- Avg merge
- 1h 9m
- Merged PRs (30d)
- 2
Description
Not really a bug per se but I want to report that:
I found it impossible to use group_bootstraps with a dataset of n around 10000, and the number of groups around 500, because it takes so long. I'm not sure but I have a feeling this shouldn't take that long.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported slowdown through the group_bootstraps() entry point with a dataset of about 10,000 rows and 500 groups, including rare classes. Compare its runtime with smaller datasets or fewer groups to identify when the cost grows. Done means explaining the bottleneck and establishing a measurable improvement or a documented expected runtime.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100