Skip to content
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

Does this package support lightGBMs? #75

Closed
flippercy opened this issue Jul 18, 2023 · 2 comments
Closed

Does this package support lightGBMs? #75

flippercy opened this issue Jul 18, 2023 · 2 comments

Comments

@flippercy
Copy link

Hi @vruusmann:

Does this package support lightGBM models, please?

Thank you.

@vruusmann
Copy link
Member

The R wrapper for LightGBM models is some weird & super complex class, which cannot be persisted using the standard saveRDS() function call.

Therefore, you must go use the manual workflow:

  1. Train a LightGBM model in R
  2. Save the LightGBM portion of this weird & complex object into a LGBM file using the lgbm.save() function: https://lightgbm.readthedocs.io/en/latest/R/reference/lgb.save.html
  3. Convert the LGBM file using the JPMML-LightGBM command-line application.

@vruusmann
Copy link
Member

The R wrapper for LightGBM models is some weird & super complex class, which cannot be persisted using the standard saveRDS() function call.

This issue might have been fixed in LightGBM version 4.0.0.

See microsoft/LightGBM#4685 and microsoft/LightGBM#4296

Reopening, as a reminder to re-evaluate the situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants