h2o.get_segment_models: Retrieves an instance of H2OSegmentModels for a given id.

View source: R/kvstore.R

h2o.get_segment_modelsR Documentation

Retrieves an instance of H2OSegmentModels for a given id.

Description

Retrieves an instance of H2OSegmentModels for a given id.

Usage

h2o.get_segment_models(segment_models_id)

Arguments

segment_models_id

A string indicating the unique segment_models_id

Value

Returns an object that is a subclass of H2OSegmentModels.

Examples

## Not run: 
library(h2o)
h2o.init()
iris_hf <- as.h2o(iris)
h2o.train_segments(algorithm = "gbm",
                   segment_columns = "Species", segment_models_id="models_by_species",
                   x = c(1:3), y = 4, training_frame = iris_hf, ntrees = 5, max_depth = 4)
models <- h2o.get_segment_models("models_by_species")
as.data.frame(models)

## End(Not run)

h2o documentation built on May 29, 2024, 4:26 a.m.