Load a saved H2O model from disk. (Note that ensemble binary models can now be loaded using this method.)
h2o.loadModel(path)
| path | The path of the H2O Model to be imported. and port of the server running H2O. |
|---|
Returns a H2OModel object of the class corresponding to the type of model built.
h2o.saveModel, H2OModel
# NOT RUN {
# library(h2o)
# h2o.init()
# prosPath = system.file("extdata", "prostate.csv", package = "h2o")
# prostate.hex = h2o.importFile(path = prosPath, destination_frame = "prostate.hex")
# prostate.glm = h2o.glm(y = "CAPSULE", x = c("AGE","RACE","PSA","DCAPS"),
# training_frame = prostate.hex, family = "binomial", alpha = 0.5)
# glmmodel.path = h2o.saveModel(prostate.glm, dir = "/Users/UserName/Desktop")
# glmmodel.load = h2o.loadModel(glmmodel.path)
# }