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

Description Usage Arguments Value Examples

View source: R/kvstore.R

Description

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

Usage

1
h2o.getModel(model_id)

Arguments

model_id

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

Value

Returns an object that is a subclass of H2OModel.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
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)

## End(Not run)

h2o documentation built on Oct. 10, 2021, 1:08 a.m.