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

predictions results do not match original lightgbm #98

Closed
Yang-HangWA opened this issue Jun 11, 2019 · 4 comments · Fixed by #215
Closed

predictions results do not match original lightgbm #98

Yang-HangWA opened this issue Jun 11, 2019 · 4 comments · Fixed by #215

Comments

@Yang-HangWA
Copy link

#94 I installed treelite by compiling the latest code and the predictions results have a big difference between treelite model and original model. I have confused for a few of days.

@hcho3
Copy link
Collaborator

hcho3 commented Jun 11, 2019

I will take a look. One thing you should keep in mind: Treelite uses 32-bit floating point, so some numbers in your example may be too big.

@Yang-HangWA
Copy link
Author

@hcho3 Thanks for your help. I try to remove the previous two feature that seems too big and retrain the model, but the results still not match.

@hcho3
Copy link
Collaborator

hcho3 commented Jun 17, 2019

Will look at this issue soon.

@hcho3
Copy link
Collaborator

hcho3 commented Sep 10, 2019

Indeed, it has to do with LightGBM using 64-bit floating-point. I'm planning to add support for multiple types so that prediction is reproducible. Stay tuned.

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

Successfully merging a pull request may close this issue.

2 participants