-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] MNT Removed deprecated attributes and parameters #15803
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
Should be ready @amueller @thomasjpfan @glemaitre maybe? |
I know this is exciting :D but should we wait a bit for the patch releases to minimize potential merge conflicts? |
merge conflicts with what? |
with PRs which we'll have to backport to 0.22.X |
Since these are mostly removals I would say the risk of conflict is minimal, but I've no problem with waiting if you'd rather do that |
sklearn/linear_model/_huber.py
Outdated
@@ -205,7 +205,7 @@ class HuberRegressor(LinearModel, RegressorMixin, BaseEstimator): | |||
>>> y[:4] = rng.uniform(10, 20, 4) | |||
>>> huber = HuberRegressor().fit(X, y) | |||
>>> huber.score(X, y) | |||
-7.284608623514573 | |||
-7.284608623514572 |
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.
Why this change? Maybe we are better using an ellipsis?
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'm not really sure honestly. I double checked and couldn't find a change that could have caused this. It was only failing on a specific platform (MacOS I think), so I don't think it's related to the changes. I'll use ellipsis
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.
OK. I agree with you.
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
Regarding the patch release, I don't think that we will have any issue with we are cherry-picking. As @NicolasHug, we remove stuff so we should not have conflict.
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.
otherwise LGTM, thanks @NicolasHug
dtype=[np.float64, np.float32], | ||
accept_sparse=True, | ||
warn_on_dtype=True, | ||
estimator='SomeEstimator') | ||
assert X_checked.dtype == np.float64 |
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 should be removed
DataConversionWarning, 'KNeighborsClassifier', | ||
check_X_y, X, y, dtype=np.float64, accept_sparse=True, | ||
warn_on_dtype=True, estimator=KNeighborsClassifier()) | ||
|
||
assert X_checked.dtype == np.float64 |
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 should be removed
Another batch of deprecation removals
multioutput
parameter value inBaseEstimator.score
call tor2_score