Centers and/or scales the columns of an H2O dataset.
h2o.scale(x, center = TRUE, scale = TRUE)
## S3 method for class 'H2OFrame'
scale(x, center = TRUE, scale = TRUE)
An H2OFrame object.
either a logical value or numeric vector of length equal to the number of columns of x.
irisPath <- system.file("extdata", "iris_wheader.csv", package="h2o")
iris.hex <- h2o.uploadFile(path = irisPath, destination_frame = "iris.hex")
# Scale and center all the numeric columns in iris data set
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.