Learn R Programming

h2o (version 3.44.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)

Value

Returns an object that is a subclass of H2OModel.

Arguments

model_id

A string indicating the unique model_id of the model to retrieve.

Examples

Run this code
if (FALSE) {
library(h2o)
h2o.init()

iris_hf <- as.h2o(iris)
model_id <- h2o.gbm(x = 1:4, y = 5, training_frame = iris_hf)@model_id
model_retrieved <- h2o.getModel(model_id)
}

Run the code above in your browser using DataLab