-
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
[R-Package] Extremely long column names cause error "[LightGBM] [Fatal] Check failed: (reserved_string_size) >= (required_string_size) at lightgbm_R.cpp, line 177" #4556
Comments
Thanks very much for using I believe this issue has been fixed on See the following test as an example. LightGBM/R-package/tests/testthat/test_dataset.R Lines 296 to 312 in f5925c3
To confirm, you could try installing the R package from source. git clone --recursive git@github.com:microsoft/LightGBM.git
cd LightGBM
sh build-cran-package.sh
R CMD INSTALL lightgbm_3.2.1.99.tar.gz A new release with this and many other fixes will be up on CRAN soon. I recommend subscribing to #4310 to be notified when that release goes out. |
Fantastic! Thank you. I did actually search to see if this was a duplicate, just apparently wasn't very good at it 😄 Thanks for the great package! |
No problem, come back any time! 👋 |
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. |
Description
Using the R package to fit models fails with error
[LightGBM] [Fatal] Check failed: (reserved_string_size) >= (required_string_size) at lightgbm_R.cpp, line 177
when (many?) columns have long column names.
Truncating column names solves this issue and the model fits successfully.
Reproducible example
Created on 2021-08-25 by the reprex package (v2.0.0)
Environment info
LightGBM version or commit hash: lightgbm_3.2.1 (R package)
Command(s) you used to install LightGBM
install.packages("lightgbm")
Additional Comments
The text was updated successfully, but these errors were encountered: