h2o.upload_model: Upload a binary model from the provided local path to the H2O...

View source: R/import.R

h2o.upload_modelR Documentation

Upload a binary model from the provided local path to the H2O cluster. (H2O model can be saved in a binary form either by saveModel() or by download_model() function.)

Description

Upload a binary model from the provided local path to the H2O cluster. (H2O model can be saved in a binary form either by saveModel() or by download_model() function.)

Usage

h2o.upload_model(path)

Arguments

path

A path on the machine this python session is currently connected to, specifying the location of the model to upload.

Value

Returns a new H2OModel object.

See Also

h2o.saveModel, h2o.download_model

Examples

## Not run: 
# library(h2o)
# h2o.init()
# prostate_path = system.file("extdata", "prostate.csv", package = "h2o")
# prostate = h2o.importFile(path = prostate_path)
# prostate_glm = h2o.glm(y = "CAPSULE", x = c("AGE","RACE","PSA","DCAPS"),
#   training_frame = prostate, family = "binomial", alpha = 0.5)
# glmmodel_path = h2o.download_model(prostate_glm, dir = "/Users/UserName/Desktop")
# glmmodel_load = h2o.upload_model(glmmodel_path)

## End(Not run)

h2o documentation built on May 29, 2024, 4:26 a.m.