Saving and loading H2O Model POJO from python

1,007 views
Skip to first unread message

Jithin K M

unread,
Dec 29, 2015, 11:25:23 PM12/29/15
to H2O Open Source Scalable Machine Learning - h2ostream
Could anybody tell me how to save and load H2O Model POJO from Python?
Thanks.

Avni Wadhwa

unread,
Dec 30, 2015, 3:55:23 PM12/30/15
to H2O Open Source Scalable Machine Learning - h2ostream
Hi,


Thanks,
Avni

JKM

unread,
Jan 3, 2016, 11:20:47 PM1/3/16
to H2O Open Source Scalable Machine Learning - h2ostream
Hi Avni,

Thanks for your help.
I gone through that doc. But after downloading POJO using 'h2o.download_pojo(model)', how can I use the downloaded POJO? I couldn't find the downloaded POJO anywhere in my system. Also if I have a downloaded POJO, how can I load it again to predict my test inputs?

Thanks
Jithin

Erin LeDell

unread,
Jan 4, 2016, 3:17:31 PM1/4/16
to JKM, H2O Open Source Scalable Machine Learning - h2ostream
Hi Jithin,
Are you aware of the differences in using a POJO model vs a binary format model for making predictions?

If you aren't putting this model in production right away, it's easier to use the `h2o.saveModel` and `h2o.loadModel` functions (in the R package).  If you are looking to go to production, visit our POJO docs: http://h2o-release.s3.amazonaws.com/h2o/rel-tibshirani/8/docs-website/h2o-docs/index.html#POJO%20Quick%20Start-Use%20Cases

Best,
Erin
--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Erin LeDell Ph.D.
Statistician & Machine Learning Scientist | H2O.ai

Erin LeDell

unread,
Jan 4, 2016, 3:19:05 PM1/4/16
to JKM, H2O Open Source Scalable Machine Learning - h2ostream

JKM

unread,
Jan 5, 2016, 12:21:48 AM1/5/16
to H2O Open Source Scalable Machine Learning - h2ostream
Thanks Erin. I will try the method you specified.

JKM

unread,
Jan 6, 2016, 11:56:58 PM1/6/16
to H2O Open Source Scalable Machine Learning - h2ostream
Thanks Erin.
h2o.save_model and  h2o.load_model works fine for me.
Reply all
Reply to author
Forward
0 new messages