Learn R Programming

h2o (version 2.8.4.4)

h2o.ls: Obtain a list of H2O keys from the running instance of H2O

Description

Allows users to access a list of object keys in the running instance of H2O

Usage

h2o.ls(object, pattern)

Arguments

object
An H2OClient object containing the IP address and port number of the H2O server.
pattern
A string indicating the type of key to be returned. When pattern is left is unspecified all keys are returned.

Value

  • Returns a list of hex keys in the current instance of H2O, and their associated sizes in bytes.

Examples

Run this code
library(h2o)
localH2O = h2o.init()
prosPath = system.file("extdata", "prostate.csv", package="h2o")
prostate.hex = h2o.importFile(localH2O, path = prosPath, key = "prostate.hex")
s = runif(nrow(prostate.hex))
prostate.train = prostate.hex[s <= 0.8,]
prostate.train = h2o.assign(prostate.train, "prostate.train")
h2o.ls(localH2O)

Run the code above in your browser using DataLab