Look for an effective way to build trees in rstudio, H2O Flow or on the local html page from h2o RF and GBM models, similar to those shown in the picture below. In particular, how do you draw trees for the objects (models suitable) rf1 and gbm2 generated by the code below, perhaps by parsing h2o.download_pojo (rf1) or h2o.download_pojo (gbm1)?

# # The following two commands remove any previously installed H2O packages for R. # if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) } # if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") } # # Next, we download packages that H2O depends on. # pkgs <- c("methods","statmod","stats","graphics","RCurl","jsonlite","tools","utils") # for (pkg in pkgs) { # if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) } # } # # # Now we download, install h2o package # install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/rel-turchin/3/R"))) library(h2o) h2o.init(nthreads = -1, max_mem_size = "2G") h2o.removeAll() ##clean slate - just in case the cluster was already running ## Load data - available to download from link below ## https:
Webby source share