Skip to content

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

Merged
merged 27 commits into from
Dec 13, 2019

Conversation

NicolasHug
Copy link
Member

Need to merge #15803 first

  • changed nmf default value of init param
  • raise error instead of warning in LinearDiscriminantAnalysis
  • removed label param in hamming_loss
  • updated method parameter of power_transform
  • changed default value of min_impurity_split
  • removed assert_false and assert_true

@glemaitre
Copy link
Member

It seems that there is something wrong with min_impurity_split which is None and not a float.

@NicolasHug
Copy link
Member Author

Green and ready for review @glemaitre @adrinjalali @qinhanmin2014 @thomasjpfan

@adrinjalali
Copy link
Member

interesting, why are the scores changed?

@NicolasHug
Copy link
Member Author

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"):
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member Author

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

Copy link
Member

@glemaitre glemaitre left a 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.

@NicolasHug
Copy link
Member Author

Maybe @thomasjpfan can give this a quick review and then we can finish up #15860?

@thomasjpfan thomasjpfan changed the title [MRG] MNT Removed deprecated attributes and parameters -- ctnd MNT Removed deprecated attributes and parameters -- ctnd Dec 13, 2019
@thomasjpfan thomasjpfan merged commit 42e17b3 into scikit-learn:master Dec 13, 2019
@thomasjpfan
Copy link
Member

Thank you @NicolasHug !

panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants