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

Update docs of mojo visualisation for png format #8176

Closed
exalate-issue-sync bot opened this issue May 11, 2023 · 1 comment
Closed

Update docs of mojo visualisation for png format #8176

exalate-issue-sync bot opened this issue May 11, 2023 · 1 comment
Assignees

Comments

@exalate-issue-sync
Copy link

Documentation for mojo tree visualization should be updated for --format png option which was added recently: [http://h2o-release.s3.amazonaws.com/h2o/rel-zahradnik/1/docs-website/h2o-docs/mojo-quickstart.html?highlight=printmojo|http://h2o-release.s3.amazonaws.com/h2o/rel-zahradnik/1/docs-website/h2o-docs/mojo-quickstart.html?highlight=printmojo]

this should appear in the end of “Viewing a MOJO Model” after R code snippet:

If Graphviz installation is troublesome on your environment, there is another option to produce picture output directly. Please note, that for this option Java 8 or higher is required.

// example output picture which is attached //

The following code snippet shows how to run the PrintMojo tool on the command line to make a .png file without usage of Graphviz.

{noformat}# download the latest stable h2o release from http://www.h2o.ai/download/

and run the PrintMojo tool from the command line.

java -cp h2o-genmodel.jar hex.genmodel.tools.PrintMojo --tree 0 -i mojo.zip -o tree.png --format png

open tree.png{noformat}

Note: h2o-genmodel.jar can be extracted from the running h2o instance like this:

{noformat}$ java -jar h2o.jar

Do this in a new terminal window. Note that H2O must still be running in terminal window #1

$ curl http://localhost:54321/3/h2o-genmodel.jar > h2o-genmodel.jar{noformat}

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

JIRA Issue Migration Info

Jira Issue: PUBDEV-7462
Assignee: hannah.tillman
Reporter: Zuzana Olajcová
State: Resolved
Fix Version: 3.30.0.2
Attachments: Available (Count: 1)
Development PRs: Available

Linked PRs from JIRA

#4544

Attachments From Jira

Attachment Name: Tree1.png
Attached By: Zuzana Olajcová
File Link:https://h2o-3-jira-github-migration.s3.amazonaws.com/PUBDEV-7462/Tree1.png

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

2 participants