-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
TST ensure that sklearn/_loss/tests/test_loss.py is seed insensitive #22847
TST ensure that sklearn/_loss/tests/test_loss.py is seed insensitive #22847
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only one nitpick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the disagreement is solved :)
Co-authored-by: Christian Lorentzen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran these test with SKLEARN_TESTS_GLOBAL_RANDOM_SEED="all"
on a M1 CPU and a AMD CPU and they all passed.
LGTM
I feel honored that the loss module got picked as first PR towards #22827 😉 And I feel relieved that it passed! |
…cikit-learn#22847) Co-authored-by: Christian Lorentzen <[email protected]>
Towards #22827
I only modified the tests that were testing mathematical properties of the loss implementations on random data. I skipped tests that are just about shapes, dtypes and error messages as they are unlikely to suffer from seed-sensitivity.
I launched:
on my local machine and all tests pass. Those tests are already seed-insensitive.