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

Support "all" trees for print MOJO of XGBoost (in Java) #7665

Closed
exalate-issue-sync bot opened this issue May 11, 2023 · 2 comments
Closed

Support "all" trees for print MOJO of XGBoost (in Java) #7665

exalate-issue-sync bot opened this issue May 11, 2023 · 2 comments

Comments

@exalate-issue-sync
Copy link

Script used:

{noformat}java -cp h2o-genmodel.jar hex.genmodel.tools.PrintMojo -i Generic_model_python_xxxxx.zip -o yyyyyy_all_json.txt --format json{noformat}

Error message:

{quote}java.lang.IllegalArgumentException: There is no such tree number for given class. Total number of trees is 176.

        at hex.genmodel.algos.xgboost.XGBoostMojoModel.computeGraph(XGBoostMojoModel.java:212)

        at hex.genmodel.algos.xgboost.XGBoostJavaMojoModel.convert(XGBoostJavaMojoModel.java:130)

        at hex.genmodel.algos.xgboost.XGBoostJavaMojoModel.convert(XGBoostJavaMojoModel.java:135)

        at hex.genmodel.tools.PrintMojo.run(PrintMojo.java:267)

        at hex.genmodel.tools.PrintMojo.main(PrintMojo.java:60){quote}

@exalate-issue-sync
Copy link
Author

Michal Kurka commented: Fixed as a part of PUBDEV-7978

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

JIRA Issue Details

Jira Issue: PUBDEV-7979
Assignee: Michal Kurka
Reporter: Neema Mashayekhi
State: Resolved
Fix Version: 3.32.1.1
Attachments: N/A
Development PRs: N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant