Learn R Programming

h2o (version 3.44.0.3)

h2o.upload_model: 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)

Value

Returns a new H2OModel object.

Arguments

path

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

See Also

h2o.saveModel, h2o.download_model

Examples

Run this code
if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab