Learn R Programming

h2o (version 2.4.3.11)

h2o.exportHDFS: Export a H2O Model to HDFS

Description

Saves a model built from a H2O algorithm to HDFS.

Usage

h2o.exportHDFS(object, path)

Arguments

object
An H2OModel object representing the model to be exported.
path
The HDFS file path where the model should be saved.

See Also

H2OModel

Examples

Run this code
# This is an example of how to export H2O models to HDFS.
# The user must modify the path to his or her specific HDFS path for this example to run.
library(h2o)
localH2O = h2o.init(ip = "localhost", port = 54321, startH2O = TRUE)
irisPath = system.file("extdata", "iris_wheader.csv", package="h2o")
iris.hex = h2o.importFile(localH2O, path = irisPath)
iris.gbm = h2o.gbm(x = 1:4, y = 5, data = iris.hex)
h2o.exportHDFS(iris.gbm, path = "hdfs://192.168.1.161/datasets/models")

Run the code above in your browser using DataLab