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

[Question] Numerical Instability when using double as input #34

Open
Kaiyang-Chen opened this issue Aug 9, 2024 · 0 comments
Open

[Question] Numerical Instability when using double as input #34

Kaiyang-Chen opened this issue Aug 9, 2024 · 0 comments

Comments

@Kaiyang-Chen
Copy link

I used tl2cgen to compile my model file, it is a really nice tool!

But since there's no missing value and qvalue needed in my case, i changed function input parameter to double* data, however, I found there's some stability issue that <1% of predict results can not match the one generated by LightGBM boosting api, btw, our tree is really sensitive to precision (the node threshold are small value with many decimal place). The problem is finally fixed by changing the input parameter to const double* data, But I am pretty sure that I am not changing the data anywhere.

Anyone has idea about the reason?

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

1 participant