Skip to content

Changed_only=True fails with kwargs parameters #17206

Closed

Description

@NicolasHug

I'm opening the issue just to have a reference

from sklearn import set_config
from lightgbm import LGBMClassifier
set_config(print_changed_only=True)
print(LGBMClassifier(metric='auc'))

will fail because metric is not part of the signature of init, it's part of a kwargs parameter.

Arguably, that's LightGBM not being super complient, but there's nothing in our docs explicitly preventing this.

Fixed by #17205

Activity

  1. mirekphd commented on May 24, 2020

    @mirekphd

    Great to see it fixed! Will you be withdrawing the buggy version 0.23.0 of scikit-learn from PyPI?

  2. NicolasHug commented on May 24, 2020

    @NicolasHug
    MemberAuthor

    No, but 0.23.1 is out already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions