Hello World – the H2O machine learning code
H2O Core is designed for machine learning at scale; however, it can also be used on small datasets on a user's laptop. In the following section, we will use a minimal code example of H2O-3 to build a machine learning model and export it as a deployable artifact. We will use this example to serve as the most basic unit to understand H2O machine learning code, much like viewing a human stick figure to begin learning about human biology.
Code example
Take a look at the code examples that follow. Here, we are writing in Python, which could be from Jupyter, PyCharm, or another Python client. We will learn that R and Java/Scala are alternative languages in which to write H2O code.
Let's start by importing the H2O library:
import h2o
Recall from the documentation that this has been downloaded from H2O and installed in the client or an IDE environment. This h2o
package allows us to run H2O in-memory distributed machine...