Marcin Magnus
Marcin Magnus

Reputation: 282

Way to save the whole environment in H2O?

Is there a way to save the whole environment in H2o Flow, so you can get all the grids, models, and predictions intact after you restart the h2o? When I do Download a flow, or Save/Load it loads only a flow with no data.

Upvotes: 2

Views: 531

Answers (2)

Marcin Magnus
Marcin Magnus

Reputation: 282

I think this is the only correct answer right now. There is no way to save the whole environment. I wrote a script to save (save_all_models()), load models (load_models(), and save frames (save_all_frames()) within Python. You can also saved models produced by a given grid search.

The jupiter demo: https://github.com/mmagnus/h2o_utils/blob/master/h2o_utils_demo.ipynb

The module: https://github.com/mmagnus/h2o_utils/blob/master/h2o_utils.py

Upvotes: 2

Erin LeDell
Erin LeDell

Reputation: 8819

No, currently there is not a way to save all of the objects in the H2O cluster (which is what you're asking). The H2O cluster contains data frames and models. It doesn't really make sense to save the data frames since you already have a copy of the data (that you loaded into H2O). However, you might want to save the models, and you can do that as follows:

  1. Click getModels in the Flow Assist section, or click on the "Models" menu item and then "List All Models"
  2. A list of all of you models will pop up. Click on the one that you want to save.
  3. The model information will be expanded and then you will see an "Export Model" button. Click on that to save the model to disk.

You will have to save the models individually. This may change in the future, but right now, that's how you do it.

enter image description here

Upvotes: 0

Related Questions