h2o (version 3.2.0.3)

h2o.getModel: Get an R reference to an H2O model

Description

Returns a reference to an existing model in the H2O instance.

Usage

h2o.getModel(model_id, conn = h2o.getConnection(), linkToGC = FALSE)

Arguments

model_id
A string indicating the unique model_id of the model to retrieve.
conn
H2OConnection object containing the IP address and port of the server running H2O.
linkToGC
A logical value indicating whether to remove the underlying model from the H2O cluster when the R proxy object is garbage collected.

Value

  • Returns an object that is a subclass of H2OModel.

Examples

Run this code
library(h2o)
localH2O <- h2o.init()

iris.hex <- as.h2o(iris, localH2O, "iris.hex")
model_id <- h2o.gbm(x = 1:4, y = 5, training_frame = iris.hex)@model_id
model.retrieved <- h2o.getModel(model_id, localH2O)

Run the code above in your browser using DataLab