-
Notifications
You must be signed in to change notification settings - Fork 101
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
error: ‘inf’ undeclared with export_lib
#8
Comments
@travisbrady This is interesting. Can you attach the LightGBM model file? I'm really not sure how that 'inf' constant got there. |
Absolutely, apologies for the delay. Had to anonymize this. |
@travisbrady Thanks! A quick inspection does reveal the occurrence of constant According to this page, LightGBM uses Thanks a lot for taking time to report this problem. |
@hcho3 No thank you so much for looking into this so quickly. |
@travisbrady We're currently working on it. Our goal is to have 1) deployment tutorial and 2) benchmarks, before the official launch (some time next month?) Thanks for your interest. |
@travisbrady I've pushed a bug fix to address the issue. A new binary wheel (version |
As a side note, it may take a really long time to compile your model. To reduce compile time, you should enable both Example: model.export_lib('gcc', libpath='./libtest.dylib',
params={'parallel_comp':4}, nthread=4, verbose=True) On my machine (specification), the above line takes about 2 minutes to complete. |
The new wheel is now available. Install it by writing
|
The recent re-factor did not handle infinite thresholds properly, leading to a problem similar to issue #8. TODO. It is about time to write tests.
Hi, treelite looks excellent, but so far I can't seem to get my lightgbm model to export correctly.
Any pointers?
The text was updated successfully, but these errors were encountered: