-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MNT Removed deprecated attributes and parameters -- ctnd #15804
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
It seems that there is something wrong with |
Green and ready for review @glemaitre @adrinjalali @qinhanmin2014 @thomasjpfan |
interesting, why are the scores changed? |
Because of min impurity split I would say |
@@ -479,9 +479,6 @@ def _set_checking_parameters(estimator): | |||
# K-Means | |||
estimator.set_params(n_init=2) | |||
|
|||
if hasattr(estimator, "n_components"): |
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 could assume that it was to speed up the tests. Is there a reason to remove it?
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.
We used to raise a warning, but now we error so tests would fail because in some cases 2 was too high.
Since setting it to 1 is not really meaningful, I left it to the default.
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.
In terms of testing time, pytest sklearn/tests/test_common.py -k LinearDiscriminantAnalysis
goes from 4.9 secs to 5.2 secs on my machine so that's negligible
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 apart from the question on the estimator_checks.
Maybe @thomasjpfan can give this a quick review and then we can finish up #15860? |
Thank you @NicolasHug ! |
Need to merge #15803 first