-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Booster.predict returns same score for any distinct instance when executed via JEP #2500
Comments
LInked with the following issue : ninia/jep#205 |
Since Python script returns a correct values, I guess there is an issue at the Since, you've already filed this issue to |
@StrikerRUS, can you take a look at ninia/jep#205 (comment) to see if LightGBM should be improved to handle locales better? |
@ndjensen Thanks a lot for keeping us with updates! Can you please elaborate a little bit more, in what aspects locale handling can be improved?
IDK, maybe this issue is somehow related to JEP: #1481. |
I don't entirely understand it, you can read the other comments on the Jep ticket, but I think if you save a model file in one locale and load it in a different locale, the model file is not read correctly. @ManuelMourato25 already attached a model file and it doesn't work if read when the locale is Portuguese. @ManuelMourato25, please feel free to correct me if I'm not explaining it correctly. |
I am trying to call LightGBM via JEP (Java Embedded Python), in order to predict the scores of a couple of records.
However, if I execute the Booster.predict command via JEP, it returns a constant score of 0.04742587, for every distinct record passed.
The same does not happen if I invoke LGBM from a Python script.
Any ideas on what the issue might be?
Note: when using JEP to invoke different models, like xgboost, this issue does not happen.
Environment info
Operating System: Ubuntu 18.04
CPU/GPU model: Running on local machine with 8 cores / 32 GB RAM
Python version: 3.6.9
GCC version: 7.4.0
Java version: 1.8
Jep version: 3.7.1
LightGBM version or commit hash: 2.3.1
Steps to reproduce
COMMON STEPS:
m0_test.zip
JEP EXECUTION:
PYTHON EXECUTION:
The text was updated successfully, but these errors were encountered: