January 2019
Intermediate to advanced
390 pages
9h 16m
English
We will first show how regression can be done in H2O. We will use the same dataset as we used earlier with MLlib, the Boston house prices, and predict the cost of the houses. The complete code can be found at GitHub: Chapter08/boston_price_h2o.ipynb:
import h2oimport timeimport seabornimport itertoolsimport numpy as npimport pandas as pdimport seaborn as snsimport matplotlib.pyplot as pltfrom h2o.estimators.glm import H2OGeneralizedLinearEstimator as GLMfrom h2o.estimators.gbm import H2OGradientBoostingEstimator as GBMfrom h2o.estimators.random_forest import H2ORandomForestEstimator as RF%matplotlib inline
Read now
Unlock full access