Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroupKFold: Use stable sort to produce consistent splits across installs #28464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marikabergengren
Copy link

@marikabergengren marikabergengren commented Feb 19, 2024

The use of np.argsort with unstable sorting results in different splits across installations. This one is hard to write a test for since the splits will always be consistent with multiple runs in the same environment. Ideas of how to test this would be appreciated, but perhaps it's a simple enough change to motivate without a failing test.

The use of np.argsort with unstable sorting results in different splits
across installations.  This one is hard to write a test for since the
splits will always be consistent with multiple runs in the same
environment.  Ideas of how to test this would be appreciated, but
perhaps it's a simple enough change to motivate without a failing test.
Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 512191f. Link to the linter CI: here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant