[python-package] feature_names_in_ spaces replaced by underlines incompatible with sklearn#7337
[python-package] feature_names_in_ spaces replaced by underlines incompatible with sklearn#7337ThibaultDECO wants to merge 19 commits into
Conversation
…le with sklearn FIX feature_names_in_ whitespace replaced by underlines is incompatible with sklearn
jameslamb
left a comment
There was a problem hiding this comment.
Thanks for your interest in LightGBM and for taking the time to open a PR.
I've started CI for you without reviewing the changes closely yet, let's see what that says.
At a glance, I'll say I'm not very excited about having to track the original feature names everywhere. This is new complexity and that means new opportunity for bugs and maintenance burden 😫
I will review more closely once we've release v4.7.0 (#7129), that is my primary focus right now.
|
Because you're a first-time contributor, every CI run requires one of us to click a button. You may find it faster to run the tests locally. cmake -B build -S .
cmake --build build --target _lightgbm -4
sh build-python.sh install --precompile
pytest tests/python_package_test/ |
|
@jameslamb Thank you James, I will run the tests locally. |
Other options might be:
I think evaluating this will require coming up with a specific answer for the question "why does LightGBM remove spaces from feature names at all?", which will require looking through some project history. |
Fixes issue #7338
FIX feature_names_in_ whitespace replaced by underlines is incompatible with sklearn