Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
merged 8 commits into from
Apr 8, 2021

Conversation

qdeffense
Copy link
Contributor

Reference Issues/PRs

Partially address #14351

What does this implement/fix? Explain your changes.

Remove redundant max_iter in examples and tests

@amueller
Copy link
Member

tests are failing which probably indicates that you changed behavior somewhere.

@amueller
Copy link
Member

still failing...

@qdeffense
Copy link
Contributor Author

@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,
Copy link
Member

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:

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,
Copy link
Member

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:

def SGDClassifier(**kwargs):
_update_kwargs(kwargs)
return linear_model.SGDClassifier(**kwargs)

Changes the max_iter=5 for all tests in this file.

Base automatically changed from master to main January 22, 2021 10:51
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thomasjpfan thomasjpfan changed the title Remove redundant max iter TST Remove redundant max iter in sklearn/linear_model/tests Apr 8, 2021
@thomasjpfan
Copy link
Member

Merging because this is a simple PR that removes redundant defaults. Thank you for working on this @qdeffense !

@thomasjpfan thomasjpfan merged commit 1f91b87 into scikit-learn:main Apr 8, 2021
thomasjpfan added a commit to thomasjpfan/scikit-learn that referenced this pull request Apr 19, 2021
@glemaitre glemaitre mentioned this pull request Apr 22, 2021
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.