-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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] docs say categorical features must be encoded as int, but pandas categorical columns work #4676
Comments
Thanks very much @leihuang ! The document you've linked to is documentation for all of LightGBM, not only the Python package. LightGBM/python-package/lightgbm/basic.py Lines 579 to 581 in b1b6db4
I think it would be useful to add a note in a bullet point at https://lightgbm.readthedocs.io/en/latest/Advanced-Topics.html#categorical-feature-support that says something like this:
Are you interested in contributing such a change? |
@leihuang Thanks for noting this inconsistency!
|
I think this issue could be closed. Feel free to reopen if need. |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Currently the documentation on categorical feature support says that:
However, the codes have been updated and now support simply specifying a feature as being of the dtype
categorical
.Reproducible example
LightGBM version or commit hash:
lightgbm 2.2.3
The text was updated successfully, but these errors were encountered: