-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG + 1] Added a random_state=0 to many make_classification tests #7968
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
@@ -278,7 +278,7 @@ def test_consistency_path(): | |||
|
|||
def test_liblinear_dual_random_state(): | |||
# random_state is relevant for liblinear solver only if dual=True | |||
X, y = make_classification(n_samples=20) | |||
X, y = make_classification(n_samples=20, random_state=0) |
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.
42 would have made @agramfort happier ;)
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.
As @chenhe95 is new to the project I think it's ok to be allow it. Now he knows better ;)
Thanks for the detective work and fix!
I can live with 0 but 42 is the magic number indeed ! |
Reference Issue
#7966
What does this implement/fix? Explain your changes.
Before, there were non-deterministic failures due to not setting random_state when testing on make_classification()