-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
TST Remove redundant max iter in sklearn/linear_model/tests #14622
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 Remove redundant max iter in sklearn/linear_model/tests #14622
Conversation
tests are failing which probably indicates that you changed behavior somewhere. |
still failing... |
@amueller I know it's still failing but I'm trying to find wich changes make it fail |
@@ -1542,7 +1542,7 @@ def test_gradient_squared_epsilon_insensitive(): | ||
def test_multi_thread_multi_class_and_early_stopping(): | ||
# This is a non-regression test for a bad interaction between | ||
# early stopping internal attribute and thread-based parallelism. | ||
clf = SGDClassifier(alpha=1e-3, tol=1e-3, max_iter=1000, |
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.
This needs to be reverted because:
scikit-learn/sklearn/linear_model/tests/test_sgd.py
Lines 75 to 77 in 1a14920
def SGDClassifier(**kwargs): | |
_update_kwargs(kwargs) | |
return linear_model.SGDClassifier(**kwargs) |
Changes the max_iter=5
for all tests in this file.
@@ -1560,7 +1560,7 @@ def test_multi_core_gridsearch_and_early_stopping(): | ||
'n_iter_no_change': [5, 10, 50], | ||
} | ||
|
||
clf = SGDClassifier(tol=1e-2, max_iter=1000, early_stopping=True, |
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.
This needs to be reverted because:
scikit-learn/sklearn/linear_model/tests/test_sgd.py
Lines 75 to 77 in 1a14920
def SGDClassifier(**kwargs): | |
_update_kwargs(kwargs) | |
return linear_model.SGDClassifier(**kwargs) |
Changes the max_iter=5
for all tests in this file.
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
Merging because this is a simple PR that removes redundant defaults. Thank you for working on this @qdeffense ! |
…earn#14622) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Reference Issues/PRs
Partially address #14351
What does this implement/fix? Explain your changes.
Remove redundant max_iter in examples and tests