Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
246 views
in Technique[技术] by (71.8m points)

r - Is it possible to check h2o version of the model saved in file?

I would like to check h2o version assigned to a model saved in file. Is it possible in current h2o editions (I have eg. 3.29.0.4930)?

I can't find it in the messages written during h2o.loadModel() in R console unless there is a mismatch in h2o versions: "Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = page, : ERROR MESSAGE: Found version 3.14.0.3, but running version 3.29.0.4930"

Can I access it before loading model using h2o?

question from:https://stackoverflow.com/questions/65672022/is-it-possible-to-check-h2o-version-of-the-model-saved-in-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you open the binary model file with a text editor, you will see that the first line would display the H2O version it was saved in.

For example, using unix based command head -n 1 your_model_file returns

?   3.32.0.3 ...

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...