Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing the deprecated
categorical_feature
parameter from `lightgb…
…m.train(...)` function calls. (#454) 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 microsoft/LightGBM#6435. _emit_dataset_kwarg_warning("train", "categorical_feature") ``` --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information