The Wayback Machine - https://web.archive.org/web/20210904165743/https://github.com/scikit-learn/scikit-learn/pull/13974
Skip to content
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

[MRG] Initialize MissingIndicator with error_on_new = False #13974

Merged
merged 13 commits into from Jun 24, 2019

Conversation

@fhoang7
Copy link
Contributor

@fhoang7 fhoang7 commented May 29, 2019

Reference Issues/PRs

Resolves #13968

What does this implement/fix? Explain your changes.

Set error_on_new to False by default if add_indicator is True in order to suppress missing value errors in ignored features.

Any other comments?

@fhoang7 fhoang7 changed the title [WIP] Initialize MissingIndicator with error_on_new = False [MRG] Initialize MissingIndicator with error_on_new = False May 29, 2019
@jnothman
Copy link
Member

@jnothman jnothman commented May 29, 2019

Please add a non-regression test. Thanks.

Copy link
Member

@jnothman jnothman left a comment

I presume this also applies to IterativeImputer

@fhoang7
Copy link
Contributor Author

@fhoang7 fhoang7 commented May 29, 2019

Would the test be to ensure that errors are thrown if relevant features are missing values?

@jnothman
Copy link
Member

@jnothman jnothman commented May 29, 2019

@fhoang7 fhoang7 changed the title [MRG] Initialize MissingIndicator with error_on_new = False [WIP] Initialize MissingIndicator with error_on_new = False May 30, 2019
sklearn/impute/tests/test_impute.py Outdated Show resolved Hide resolved
sklearn/impute/tests/test_impute.py Outdated Show resolved Hide resolved
…e IterativeImputer nonregression test and also default error_on_new to False.
@fhoang7 fhoang7 changed the title [WIP] Initialize MissingIndicator with error_on_new = False [MRG] Initialize MissingIndicator with error_on_new = False May 30, 2019
@fhoang7
Copy link
Contributor Author

@fhoang7 fhoang7 commented Jun 1, 2019

@jnothman can you review? Thanks!

@thomasjpfan
Copy link
Member

@thomasjpfan thomasjpfan commented Jun 1, 2019

Please revert the changes that are not related to the PR.

@fhoang7
Copy link
Contributor Author

@fhoang7 fhoang7 commented Jun 1, 2019

Done! @thomasjpfan

Copy link
Member

@jnothman jnothman left a comment

Please add an entry to the change log at doc/whats_new/v0.21.rst under the 0.21.3 change log heading. Like the other entries there, please reference this pull request with :pr: and credit yourself (and other contributors if applicable) with :user:

@fhoang7
Copy link
Contributor Author

@fhoang7 fhoang7 commented Jun 2, 2019

Done! @jnothman. Thanks for the help/input.

@fhoang7
Copy link
Contributor Author

@fhoang7 fhoang7 commented Jun 3, 2019

@thomasjpfan: change being pushed up.

doc/whats_new/v0.21.rst Show resolved Hide resolved
doc/whats_new/v0.21.rst Show resolved Hide resolved
sklearn/impute/tests/test_impute.py Outdated Show resolved Hide resolved
@jnothman
Copy link
Member

@jnothman jnothman commented Jun 3, 2019

@NicolasHug I proposed putting this is an 0.21 series bug fix release, assuming we have a couple more fixes to join if (not sure if you want the recently raised divide by zero in gradient boosting to be fixed in 0.21.3 also, for instance)

@amueller
Copy link
Member

@amueller amueller commented Jun 10, 2019

Agree this should be a bug-fix release.

@fhoang7
Copy link
Contributor Author

@fhoang7 fhoang7 commented Jun 12, 2019

Implemented suggestions @NicolasHug @amueller

Copy link
Contributor

@glemaitre glemaitre left a comment

Otherwise LGTM.

sklearn/impute/tests/test_impute.py Outdated Show resolved Hide resolved
@jnothman jnothman dismissed glemaitre’s stale review Jun 24, 2019

completed

@thomasjpfan thomasjpfan added this to the 0.21.3 milestone Jun 24, 2019
@thomasjpfan thomasjpfan merged commit 7f50e82 into scikit-learn:master Jun 24, 2019
16 checks passed
16 checks passed
@lgtm-com
LGTM analysis: C/C++ No code changes detected
Details
@lgtm-com
LGTM analysis: JavaScript No code changes detected
Details
@lgtm-com
LGTM analysis: Python No new or fixed alerts
Details
ci/circleci: deploy Your tests passed on CircleCI!
Details
ci/circleci: doc Your tests passed on CircleCI!
Details
ci/circleci: doc-min-dependencies Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
@codecov
codecov/patch 100% of diff hit (target 96.83%)
Details
@codecov
codecov/project 96.83% (+<.01%) compared to 0bdd920
Details
@azure-pipelines
scikit-learn.scikit-learn Build #20190624.43 succeeded
Details
@azure-pipelines
scikit-learn.scikit-learn (Linux py35_conda_openblas) Linux py35_conda_openblas succeeded
Details
@azure-pipelines
scikit-learn.scikit-learn (Linux py35_np_atlas) Linux py35_np_atlas succeeded
Details
@azure-pipelines
scikit-learn.scikit-learn (Linux pylatest_conda) Linux pylatest_conda succeeded
Details
@azure-pipelines
scikit-learn.scikit-learn (Windows py35_32) Windows py35_32 succeeded
Details
@azure-pipelines
scikit-learn.scikit-learn (Windows py37_64) Windows py37_64 succeeded
Details
@azure-pipelines
scikit-learn.scikit-learn (macOS pylatest_conda) macOS pylatest_conda succeeded
Details
@thomasjpfan
Copy link
Member

@thomasjpfan thomasjpfan commented Jun 24, 2019

Thank you @fhoang7!

jnothman added a commit to jnothman/scikit-learn that referenced this pull request Jun 25, 2019
koenvandevelde added a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

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