Skip to content

rename splitter -> split_func in DataOp.skb.train_test_split#1630

Merged
rcap107 merged 2 commits into
skrub-data:mainfrom
jeromedockes:dop-split-func
Sep 24, 2025
Merged

rename splitter -> split_func in DataOp.skb.train_test_split#1630
rcap107 merged 2 commits into
skrub-data:mainfrom
jeromedockes:dop-split-func

Conversation

@jeromedockes

Copy link
Copy Markdown
Member

"splitter" makes it sound like it expects a cv splitter , but what is expected here is a function with the same signature as scikit-learn's train_test_split

It might get even more confusing if we later add a method to iterate over the splits obtained from an actual splitter (as opposed to a single split)

the suggestion here is to rename the parameter to split_func and deprecate splitter

@rcap107 rcap107 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @jeromedockes

@rcap107 rcap107 merged commit a820b52 into skrub-data:main Sep 24, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants