Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to use saved model between different versions of H2O?

Tags:

I have saved a trained model (deep net, but it is more general I think) in H2O. Now I want to load it by another instance of H2O and use it for scoring, but the problem is, that the version of H2O used for training (3.10.0.3) was different than the one I started the production cluster with (3.10.0.6). The error message is quite self-explanatory

ERROR MESSAGE:

Found version 3.10.0.3, but running version 3.10.0.6

Is there a way to migrate the saved model between versions? Or am I stuck with using the same version of H2O for training and scoring?

like image 650
JaKu Avatar asked Sep 19 '16 07:09

JaKu


People also ask

What is H2O auto ML?

H2O's AutoML can be used for automating the machine learning workflow, which includes automatic training and tuning of many models within a user-specified time-limit. H2O offers a number of model explainability methods that apply to AutoML objects (groups of models), as well as individual models (e.g. leader model).

How do I know my H2O version?

a quick way to see the model's corresponding h2o version number (if you used h2o. saveModel() to save the model) is to open the model's file - you should be able to see the version number within the first line (in the form 3.10. 4.2).

What is H2O mojo?

What is a MOJO? ¶ A MOJO (Model Object, Optimized) is an alternative to H2O's POJO. As with POJOs, H2O allows you to convert models that you build to MOJOs, which can then be deployed for scoring in real time.

What is H2O Python?

H2O from Python is a tool for rapidly turning over models, doing data munging, and building applications in a fast, scalable environment without any of the mental anguish about parallelism and distribution of work.


1 Answers

Yes, you are stuck using the same version for training and scoring. No migration route.

(You can export a model as a POJO, which can be bundled with the version of h2o-genmodel.jar that it needs. But that requires writing Java code to get the data in and results out, which is not ideal if you are using R code for data preparation.)

This has been discussed on the h2o-stream mailing list before, but I couldn't see a feature request ticket for it, so I just created one: https://0xdata.atlassian.net/browse/PUBDEV-3432

like image 52
Darren Cook Avatar answered Sep 25 '22 16:09

Darren Cook