Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

xgboost json model fails to load #561

Closed
LLautenbacher opened this issue Apr 25, 2024 · 3 comments · Fixed by #564
Closed

xgboost json model fails to load #561

LLautenbacher opened this issue Apr 25, 2024 · 3 comments · Fixed by #564

Comments

@LLautenbacher
Copy link

Hi,

I have a xgboost model in JSON format when I try to load it with treelite version >4.0 (treelite.frontend.load_xgboost_model) I get the error Node with key 1 is orphaned -- it cannot be reached from the root node. With version 3.9 (treelite.Model.load) it worked without issue. Do you have an idea what is causing this, or how I can convert the json into a format that works with treelite >4.0?

You can download the model file from Zenodo: https://zenodo.org/records/7576604

Thank you for your help in advance!

@hcho3
Copy link
Collaborator

hcho3 commented Apr 25, 2024

Can you also share the script you used for training the XGBoost model? I'd like to know the list of hyperparameters.

@LLautenbacher
Copy link
Author

I didn't train the model myself. But this is probably the script that was used to train it and this should be the hyperparameters selected during tuning.
image
Taken from the supplement of this paper.

@hcho3
Copy link
Collaborator

hcho3 commented May 24, 2024

@LLautenbacher The bug should be fixed in the upcoming Treelite release. Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants