-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TST Use global_random_seed in test_huber.py #30912
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
base: main
Are you sure you want to change the base?
TST Use global_random_seed in test_huber.py #30912
Conversation
I also added an empty commit to trigger all builds. |
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.
Hi @ArturoSbr, I think your empty commit should look like this
test_huber [all random seeds]
make_regression_with_outliers
test_huber_equals_lr_for_high_epsilon
test_huber_max_iter
test_huber_gradient
test_huber_sample_weights
test_huber_sparse
test_huber_scaling_invariant
test_huber_and_sgd_same_results
test_huber_warm_start
test_huber_better_r2_score
test_huber_bool
For reference:
<title> [all random seeds]
<test_name_1>
<test_name_2>
...
- test_huber [all random seeds] - make_regression_with_outliers - test_huber_equals_lr_for_high_epsilon - test_huber_max_iter - test_huber_gradient - test_huber_sample_weights - test_huber_sparse - test_huber_scaling_invariant - test_huber_and_sgd_same_results - test_huber_warm_start - test_huber_better_r2_score - test_huber_bool
Hi @Rishab260! Does this PR need any additional changes? |
Hi @ArturoSbr , I can see that this has 7 tests failing. You might want to look into why these tests have failed. |
I modified the file
sklearn/linear_model/tests/test_huber.py
by replacing all instances of hardcoded random seeds (ierandom_state=0
) withglobal_random_seed
(in accordance to this issue).