Learn R Programming

h2o (version 3.40.0.4)

as.data.frame.H2OSegmentModels: Converts a collection of Segment Models to a data.frame

Description

Converts a collection of Segment Models to a data.frame

Usage

# S3 method for H2OSegmentModels
as.data.frame(x, ...)

Value

Returns data.frame with result of segment model training.

Arguments

x

Object of class H2OSegmentModels.

...

Further arguments to be passed down from other methods.

Examples

Run this code
if (FALSE) {
library(h2o)
h2o.init()
iris_hf <- as.h2o(iris)
models <- h2o.train_segments(algorithm = "gbm",
                             segment_columns = "Species",
                             x = c(1:3), y = 4,
                             training_frame = iris_hf,
                             ntrees = 5,
                             max_depth = 4)
as.data.frame(models)
}

Run the code above in your browser using DataLab