-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TST use global_random_seed in sklearn/metrics/tests/test_classification.py #30851
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
Conversation
test_matthews_corrcoef_against_numpy_corrcoef test_matthews_corrcoef_against_jurman test_matthews_corrcoef test_matthews_corrcoef_multiclass test_classification_metric_pos_label_types
Co-authored-by: Xiao Yuan <yuanx749@gmail.com>
Co-authored-by: Xiao Yuan <yuanx749@gmail.com>
Thanks @yuanx749 for suggesting the changes, changes have been applied, please let me know if this looks good to you now? |
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. Let's wait for maintainers to review and approve.
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.
Thanks for the PR @Rishab260
Can you please push a commit with [all random seeds] and the tests you updated similar to how it is mentioned in #28959
Hi @OmarManzoor , 282b3af is this not it? Do I need to do this once more? |
I think you may have to push this once more as I can't really see the CI results with that commit. |
Okay, doing this again. thanks. |
test_matthews_corrcoef_against_numpy_corrcoef test_matthews_corrcoef_against_jurman test_matthews_corrcoef test_matthews_corrcoef_multiclass test_matthews_corrcoef_overflow
@Rishab260 The global seeds commit should be the latest one. Since you merged main after that commit the previous CI run gets cancelled. |
Acknowledged, doing this. |
test_matthews_corrcoef_against_numpy_corrcoef test_matthews_corrcoef_against_jurman test_matthews_corrcoef test_matthews_corrcoef_multiclass test_matthews_corrcoef_overflow
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. Thanks @Rishab260
Reference Issues/PRs
towards #22827
What does this implement/fix? Explain your changes.
I added the global_random_seed fixture to the tests:-
Any other comments?
This is my first PR ever, feedback and guidance is highly appreciated. Looking forward to contributing to this project more and more in the coming days. Thanks in advance!