call_PrintMojo: Export single h2o tree from mojo .zip to .gv file

Description Usage Arguments Value Examples

Description

Calls the h2o hex.genmodel.tools.PrintMojo function

Usage

1
2
call_PrintMojo(h2o_jar, tree_no, mojo_zip, output_gv, detail = FALSE,
  max_levels_to_print_per_edge = 10)

Arguments

h2o_jar

h2o.jar file, including path.

tree_no

tree number to export.

mojo_zip

h2o tree based mojo zip file, including path.

output_gv

.gv file to output to, including path.

detail

logical default = FALSE, should printMojo be called with the '–detail' option? This results in internal node predictions being printed to the .gv file, among other things.

max_levels_to_print_per_edge

max number of labels to print on an edge, if too small then splits from categorical variables with many levels will be represented as [X levels]. Default = 10 (the default value in the Java code).

Value

Outputs tree from mojo zip to specified .gv file.

Examples

1
2
# input files must be in working directory
call_PrintMojo('h2o.jar', 4, 'mojo.zip', 'tree_4.gv')

richardangell/h2oTreeHelpR documentation built on July 3, 2019, 7:35 a.m.