h2o.upload_model | R 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.)
h2o.upload_model(path)
path |
A path on the machine this python session is currently connected to, specifying the location of the model to upload. |
Returns a new H2OModel object.
h2o.saveModel
, h2o.download_model
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.