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

FIX changed_only=True with kwargs parameters #17205

Merged
merged 7 commits into from
May 13, 2020

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented May 13, 2020

sklearn/utils/_pprint.py Outdated Show resolved Hide resolved
from lightgbm import LGBMClassifier # noqa

# metric is part of **kwargs
est = LGBMClassifier(metric='auc', max_depth=10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should test something=None for non-regression?

# https://github.com/scikit-learn/scikit-learn/issues/17206

pytest.importorskip("lightgbm")
from lightgbm import LGBMClassifier # noqa
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to implement something with def __init__(**kw) here??

@adrinjalali adrinjalali added this to the 0.23.1 milestone May 13, 2020
Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, LightGBM does weird stuff with get_params. But this is a good fix.

@jnothman
Copy link
Member

Please update what's new for 0.23.1

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the fix.

doc/whats_new/v0.23.rst Outdated Show resolved Hide resolved
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
@NicolasHug NicolasHug changed the title [MRG] FIX changed_only=True with kwargs parameters FIX changed_only=True with kwargs parameters May 13, 2020
@NicolasHug NicolasHug merged commit 5f9555b into scikit-learn:master May 13, 2020
@NicolasHug NicolasHug deleted the fix_pprint_kwargs branch May 13, 2020 17:02
@NicolasHug
Copy link
Member Author

Thanks for the reviews!

@adrinjalali is there a PR/issue to tag for inclusion into 0.23.1?

@adrinjalali
Copy link
Member

No I just created the milestone and will include them next week in a PR. Putting in the milestone should be enough :)

vnmabus added a commit to GAA-UAM/scikit-fda that referenced this pull request May 14, 2020
Now the doctests work in versions where
scikit-learn/scikit-learn#17205 is merged.
gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request May 18, 2020
DavidGarciaFer pushed a commit to GAA-UAM/scikit-fda that referenced this pull request Jun 21, 2020
Now the doctests work in versions where
scikit-learn/scikit-learn#17205 is merged.
viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changed_only=True fails with kwargs parameters
4 participants