Search code examples
h2okaggleh2o4gpu

How do I use h2o4gpu in kaggle kernel?


I'm trying to setup h2o4gpu library to be used in Kaggle competition, but I haven't found any useful resource to install/setup the environment. How do I set it up step by step?

I have tried using the R package installation guide from this source : https://github.com/h2oai/h2o4gpu

But I still cannot make it work. I'm using below code, it installs the h2o4gpu package for R but I still receive error.

if (!require(devtools)) install.packages("devtools")
devtools::install_github("h2oai/h2o4gpu", subdir = "src/interface_r")

I'm hoping a simple step by step guide. Thank you.


Solution

  • The h2o4gpu package for R requires the h2o4gpu python package to be installed as well. From the docs:

    At this point, you should have installed the H2O4GPU Python package successfully.

    The error you are experiencing looks like it matches the description of a missing python package, described under "Python issues" here: https://github.com/h2oai/h2o4gpu/tree/master/src/interface_r

    If you want to use h2o4gpu from within a Kaggle kernel, I'm not sure if this is possible, since Kaggle currently disables external packages when using a GPU.