[python-package] Booster.refit()
raises a misleading warning when using categorical features
#6793
Labels
Booster.refit()
raises a misleading warning when using categorical features
#6793
Description
Seeing this warning in Python unit tests:
That test case is not directly passing
categorical_feature
throughparams
... that might be happening internal tolightgbm
, and therefore something that users cannot avoid.Reproducible example
I haven't not narrowed it down further yet, but can reliably reproduce it via running the tests.
pytest 'tests/python_package_test/test_engine.py::test_linear_trees'
Environment info
LightGBM version or commit hash: 226e7f7
Command(s) you used to install LightGBM
cmake -B build -S . -DUSE_OPENMP=OFF cmake --build build --target _lightgbm -j4 sh build-python.sh install --precompile
Additional Comments
I suspect that maybe this is a result of
categorical_feature
being treated as both a "param" here:LightGBM/python-package/lightgbm/basic.py
Lines 2021 to 2025 in 3654eca
But also being a keyword argument to
Dataset.__init__()
:LightGBM/python-package/lightgbm/basic.py
Line 1784 in 3654eca
The text was updated successfully, but these errors were encountered: