-
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] lgb.importance(): Error: R character strings are limited to 2^31-1 bytes #6288
Comments
Thanks for using LightGBM. An error message alone is not enough information for us to help you. Please provide the following:
Here's an example of how to create a reproducible example for the R package: #4721 (comment) |
version of R: 4.3.2 version of {lightgbm}: 3.3.5 how you installed LightGBM: Tool>Install package operating system: windows output of running sessionInfo() in your R session (if possible) |
Thank you for that!
What does this mean?
Can you please update to the latest version (v4.3.0) from CRAN and try again? install.packages("lightgbm", repos = "https://cran.r-project.org") And after that...we still won't be able to help much without a minimal, reproducible example. |
my lightgbm package version is 3.3.5 |
train modelmodel = lgb.train(params = list(objective = "regression", lgb_imp <- lgb.importance(model) otherwise, when I decrease the num_iterations, the will not show the error. |
Sorry if my placement was confusing. I'm asking what "Tool>Install package" means. Are those buttons you're clicking in an application? If so, what application?
Thanks for this! But it is not a reproducible example. Crucially... what does For example, based only on the error message you've provided, I can think of a few possibilities:
If you can't provide a reproducible example, can you please at least show the code you used to construct And report the size of the dataset (number of rows, number of columns, exact feature names if there are any). |
yes, I click the buttons in R studio to install the lightgbm package. data <- readRDS("D:/data.rds") lgb_imp <- lgb.importance(model) my dataset: |
Hi @jameslamb, I'm having the same issue when running It looks like Edit: Never mind, the above won't work because |
I'm closing this in favor of #6380, which describes the same problem thoroughly with a reproducible example. Let's please focus there. |
Hello!
I built a lightgbm model, and then I used the lgb.importance(model).
finally, the r show the Error: R character strings are limited to 2^31-1 bytes.
how do I solve this error? Thank you!
The text was updated successfully, but these errors were encountered: