-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TST use global_random_seed in sklearn/linear_model/tests/test_linear_loss.py #30863
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 use global_random_seed in sklearn/linear_model/tests/test_linear_loss.py #30863
Conversation
Hi @sortofamudkip, thanks for your contribution. In order to properly run all tests, can you please push an empty commit inlcuding all the names of the tests that you have changed, like this:
This is mentioned in the issue an d needed to run the tests with all the available seeds. |
test_init_zero_coef test_loss_grad_hess_are_the_same test_loss_gradients_hessp_intercept test_gradients_hessians_numerically test_multinomial_coef_shape test_multinomial_hessian_3_classes
test_init_zero_coef test_loss_grad_hess_are_the_same test_loss_gradients_hessp_intercept test_gradients_hessians_numerically test_multinomial_coef_shape test_multinomial_hessian_3_classes
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.
Thank you @sortofamudkip, it looks all good to me.
I think we can merge this. Would you mind having a look @ogrisel or @betatim? This is from the sprint we had in Berlin yesterday.
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 @sortofamudkip
Reference Issues/PRs
Towards #22827. All tests passed. @adrinjalali
What does this implement/fix? Explain your changes.
Added
global_random_seed
parameter to:test_init_zero_coef
test_loss_grad_hess_are_the_same
(passed torandom_X_y_coef
)test_loss_gradients_hessp_intercept
(passed torandom_X_y_coef
)test_gradients_hessians_numerically
(passed torandom_X_y_coef
)test_multinomial_coef_shape
(passed torandom_X_y_coef
)test_multinomial_hessian_3_classes
(passed torandom_X_y_coef
)