Machine Learning with H2O - Tutorial 5: H2O in the Cloud


Objective:

  • This tutorial demonstrates how to connect to a H2O cluster in the cloud.

Steps:

  1. Create a H2O cluster in the cloud. Follow instructions from http://h2o-release.s3.amazonaws.com/h2o/latest_stable.html
  2. Import h2o module.
  3. Connect to cluster using h2o.connect(...) with specific IP address.


Step 1: Create a H2O cluster in the Cloud

Follow the instructions from http://h2o-release.s3.amazonaws.com/h2o/latest_stable.html

Step 2: Import H2O module


In [ ]:
# Import module
import h2o

Step 3: Connect to H2O cluster with IP address


In [ ]:
# In order to connect to a H2O cluster in the cloud, you need to specify the IP address
h2o.connect(ip = "xxx.xxx.xxx.xxx") # fill in the real IP

That is all you need to do

All other tasks (importing data, training models, making predictions etc) are exactly the same as shown in previous code examples.