tidymodels / tidymodels/rsample

splits based on twinning

Open
#371 1 comment 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.