tidymodels / tidymodels/rsample

`group_bootstraps()` takes unusually long when there are rare classes

Open
#466 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.