Learn R Programming

h2o (version 3.10.4.6)

h2o.loadModel: Load H2O Model from HDFS or Local Disk

Description

Load a saved H2O model from disk.

Usage

h2o.loadModel(path)

Arguments

path

The path of the H2O Model to be imported. and port of the server running H2O.

Value

Returns a object of the class corresponding to the type of model built.

See Also

h2o.saveModel,

Examples

Run this code

# 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)

Run the code above in your browser using DataLab