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

Removing the deprecated categorical_feature parameter from lightgbm.train(...) function calls. #454

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

drivanov
Copy link
Contributor

@drivanov drivanov commented Sep 18, 2024

Using categorical_feature parameter in lightgbm.Dataset() instead of lightgbm.train(...) eliminates the following warnings:

test/gbdt/test_gbdt.py: 60 warnings
  /usr/local/lib/python3.10/dist-packages/lightgbm/engine.py:187: LGBMDeprecationWarning: Argument 'categorical_feature' 
to train() is deprecated and will be removed in a future release. Set 'categorical_feature' when calling lightgbm.Dataset() 
instead. See https://github.com/microsoft/LightGBM/issues/6435.
    _emit_dataset_kwarg_warning("train", "categorical_feature")

@drivanov drivanov changed the title Removing the deprecated categorical_feature parameter from lightgbm.train(...) function calls. Removing the deprecated categorical_feature parameter from lightgbm.train(...) function calls. Sep 18, 2024
Copy link
Contributor

@yiweny yiweny left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your contribution!

@yiweny yiweny merged commit 9c6cc61 into pyg-team:master Sep 25, 2024
13 of 14 checks passed
@drivanov drivanov deleted the cat_features branch September 25, 2024 20:47
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.

2 participants