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

[python-package] remove support for passing 'feature_name' and 'categorical_feature' through train() and cv() #6706

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

jameslamb
Copy link
Collaborator

Contributes to #6435

Removes the following keyword arguments from train() and cv() in the Python package:

  • categorical_feature
  • feature_name

Notes for Reviewers

Benefits of these changes

Simplifies the project's public API, to avoid confusion like https://stackoverflow.com/questions/78383840/in-lightgbm-why-do-the-train-and-the-cv-apis-accept-categorical-feature-argument.

Why now?

Deprecation warnings about these changes have been in lightgbm since v4.4.0 (June 2024). I expect it will be at least another month until another release of LightGBM is published, so by then it will have been multiple releases and close to 6 months. I think that's long enough.

Why only Python?

The corresponding R package changes are a bit more extensive and will generate a bit more discussion, I think. Proposing separating them to make reviewing easier and to allow one set of changes to be merged without blocking the other set.

@jameslamb jameslamb marked this pull request as ready for review October 31, 2024 00:00
@StrikerRUS StrikerRUS changed the title WIP: [python-package] remove support for passing 'feature_name' and 'categorical_feature' through train() and cv() [python-package] remove support for passing 'feature_name' and 'categorical_feature' through train() and cv() Oct 31, 2024
Copy link
Collaborator

@StrikerRUS StrikerRUS 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 a lot for clearing up these deprecated params from repo.

@StrikerRUS StrikerRUS merged commit 8d5dca2 into master Oct 31, 2024
48 checks passed
@StrikerRUS StrikerRUS deleted the python/remove-deprecated branch October 31, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants