Skip to content

feat: add sklearn CV compatibility to SimilarityStratifiedSplit - #17

Merged
timothyckl merged 1 commit into
mainfrom
feat/sklearn-compat
Mar 4, 2026
Merged

feat: add sklearn CV compatibility to SimilarityStratifiedSplit#17
timothyckl merged 1 commit into
mainfrom
feat/sklearn-compat

Conversation

@timothyckl

Copy link
Copy Markdown
Owner
  • get_n_splits and split now accept X, y, groups kwargs to match the sklearn BaseCrossValidator interface, enabling use with cross_val_score, GridSearchCV, etc.
  • split raises ValueError with a descriptive message when y is None
  • add scikit-learn to dev extras so the integration test runs in CI
  • document sklearn compatibility in README and class docstring

@timothyckl timothyckl self-assigned this Mar 4, 2026
- get_n_splits and split now accept X, y, groups kwargs to match the
  sklearn BaseCrossValidator interface, enabling use with cross_val_score,
  GridSearchCV, etc.
- split raises ValueError with a descriptive message when y is None
- add scikit-learn to dev extras so the integration test runs in CI
- document sklearn compatibility in README and class docstring
@timothyckl
timothyckl force-pushed the feat/sklearn-compat branch from 12e000d to 1043afb Compare March 4, 2026 08:15
@timothyckl
timothyckl merged commit bae4ed7 into main Mar 4, 2026
5 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.

1 participant