h2o.diff: Conduct a lag 1 transform on a numeric H2OFrame column

Description Usage Arguments Value Examples

Description

Conduct a lag 1 transform on a numeric H2OFrame column

Usage

1
h2o.difflag1(object)

Arguments

object

H2OFrame object

Value

Returns an H2OFrame object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
library(h2o)
h2o.init()

f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/junit/cars_20mpg.csv"
cars <- h2o.importFile(f)
predictors <- c("displacement", "power", "weight", "acceleration", "year")
response <- "cylinders"
cars_split <- h2o.splitFrame(data = cars, ratios = 0.8, seed = 1234)
train <- cars_split[[1]]
valid <- cars_split[[2]]
cars_gbm <- h2o.gbm(x = predictors, y = response, training_frame = train, 
                    validation_frame = valid, nfolds = 5, seed = 1234)
h2o.difflag1(cars["cylinders"])

## End(Not run)

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