Skip to content

[Qst] Numerical Instability when using double as input #581

@Kaiyang-Chen

Description

@Kaiyang-Chen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions