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

Description Usage Arguments Value Examples

View source: R/kvstore.R

Description

Converts a collection of Segment Models to a data.frame

Usage

1
2
## S3 method for class 'H2OSegmentModels'
as.data.frame(x, ...)

Arguments

x

Object of class H2OSegmentModels.

...

Further arguments to be passed down from other methods.

Value

Returns data.frame with result of segment model training.

Examples

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

## End(Not run)

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