-
-
Notifications
You must be signed in to change notification settings - Fork 26.1k
TST/MNT clean up some tests in coordinate descent #31909
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
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, @lorentzenchr!
Note to reviewers:
_scale_alpha_inplace
is not used anywhere.test_path_parameters
is covered bycheck_estimators_overwrite_params
test_read_only_buffer
is covered bycheck_inplace_ensure_writeable
@virchan Thanks for point out the reasons for the redundant tests. |
else: | ||
# To avoid silent errors in case of refactoring | ||
raise NotImplementedError | ||
@pytest.mark.filterwarnings("ignore::sklearn.exceptions.ConvergenceWarning") |
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.
There was a conflict which I resolved, but now this new test has appeared in the diff. I'm confused by that because it looked like this was a change from main
but if that is true, why does it show up in the diff?
@lorentzenchr does it make sense to you or can you resolve the conflict (locally)? Sorry for the mess :-/
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.
I think we should just delete this test again. I can't find it in https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/linear_model/tests/test_coordinate_descent.py so we don't need it. Still puzzled why it showed up when resolving the conflict
46472b4
to
d91a345
Compare
@betatim I fixed the merge conflict. |
Reference Issues/PRs
None
What does this implement/fix? Explain your changes.
Remove some duplicated tests, mostly covered by the common estimator tests in
estimators_checks.py
.Any other comments?