We'll use Google Colab to build our model. In Chapter 10, Heterogeneous Ensemble Classifiers Using H2O, we explained how to use Google Colaboratory in the There's more section.
We'll start by installing H2O in Google Colab as follows:
! pip install h2o
Executing the preceding command will show you a few instructions, with the final line showing the following message (the version number of H2O will be different depending on the latest version available):
Successfully installed colorama-0.4.1 h2o-3.22.1.2
We import all the required libraries, as follows:
import pandas as pdimport numpy as npfrom sklearn.model_selection import train_test_splitfrom sklearn.metrics import confusion_matrix, roc_curve, aucfrom sklearn import tree