Learn R Programming

h2o (version 2.8.4.4)

h2o.getModel: Get Reference to H2O Model

Description

Get a reference to an existing H2O model.

Usage

h2o.getModel(h2o, key)

Arguments

h2o
An H2OClient object containing the IP address and port of the server running H2O.
key
A string indicating the unique hex key of the model to retrieve.

Value

  • Returns an object that is a subclass of H2OModel.

Examples

Run this code
library(h2o)
localH2O = h2o.init()

iris.hex <- as.h2o(localH2O, iris, "iris.hex")
model <- h2o.randomForest(x = 1:4, y = 5, data = iris.hex)
model.retrieved <- h2o.getModel(localH2O, model@key)
h2o.shutdown(localH2O)

Run the code above in your browser using DataLab