Has anyone successful trained a model using h20 and R in a Google Colab notebook? I’m having trouble figuring out how to just install the package. I keep getting the error: “there is no package called ‘h20’”.
Hi @lolatu2
The first thing to mention is that it’s h2o rather than h20 which is probably a typo?
Beyond that, to submit an h2o model via colab:
- Make sure that you have the
install.packages("h2o")in yourinstall_packagesfunction. - Make sure that you have
library("h2o")in yourglobal_importsfunction - Make sure to
h2o.init()inside theglobal_importsfunction. This function is put inside every other function you have in the notebook. - Alter you
save_modelandload_modelfunction to work withh2omodels.
That should work. If it doesn’t then please come back to this thread and we will figure it out.
And welcome to the discourse
!
Thank you… I am having a brain lapse, and yes, my issue it because of the typo.
1 Like