tidymodels / tidymodels/rsample
splits based on twinning
Open
Nobody has claimed this yet.
feature
- Dominant language
- R
- Stars
- 343
- Forks
- 67
- Avg merge
- 1h 9m
- Merged PRs (30d)
- 2
Description
Twinning is a tool to create splits based on making the marginal distributions of the variables the as close as possible. See this paper (pdf) for more details.
There is an R package that can be used.
We could use this in vfold_cv() as well as initial_split() and mc_cv().
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 reading the twinning paper and the R twinning package, then inspect the existing vfold_cv(), initial_split(), and mc_cv() entry points. Done means defining and implementing how twinning-based splits should work across those APIs, with corresponding validation and tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100