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

The LightGBM model output is quite different to the expected result. #26

Open
shipengAlan opened this issue Feb 20, 2023 · 2 comments
Open

Comments

@shipengAlan
Copy link

I exported my tree based regression model to PMML format. And based on this library I load the model file, evaluate it with unit cases and found its output score is quite different to the result when training.
Do you know the possible reasons? Thanks a lot

@shipengAlan shipengAlan changed the title The model output is quite different to the expected result. The LightGBM model output is quite different to the expected result. Feb 21, 2023
@scorebot
Copy link
Member

About the results of the model prediction, you can refer to the third part Understand the result values of https://github.com/autodeployai/pmml4s#use-in-scala

There are some models that could define output fields without the predicted value, for example only probabilities of each category, then if you expect all the possible results, you can call the method model.setSupplementOutput(true) to get all results including the final predicted value.

@scorebot
Copy link
Member

scorebot commented Mar 1, 2023

@shipengAlan Please let me know if you still have a problem

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

2 participants