Skip to Main Content
Ensemble Machine Learning Cookbook
book

Ensemble Machine Learning Cookbook

by Dipayan Sarkar, Vijayalakshmi Natarajan
January 2019
Beginner to intermediate content levelBeginner to intermediate
336 pages
7h 58m
English
Packt Publishing
Content preview from Ensemble Machine Learning Cookbook

How to do it...

Let's move on to training our models using the algorithms we mentioned earlier in this chapter. We'll start by training our generalized linear model (GLM) models. We'll build three GLM models:

  • A GLM model with default values for the parameters
  • A GLM model with Lambda search (regularization)
  • A GLM model with grid search

Now we will start with training our models in the following section.

  1. Let's train our first model:
GLM_default_settings = H2OGeneralizedLinearEstimator(family='binomial', \                                            model_id='GLM_default',nfolds = 10, \                                            fold_assignment = "Modulo", \                                            keep_cross_validation_predictions = True)

H2OGeneralizedLinearEstimator fits a generalized linear model. It takes in a response variable and a set of predictor variables.  ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Productive and Efficient Data Science with Python: With Modularizing, Memory profiles, and Parallel/GPU Processing

Productive and Efficient Data Science with Python: With Modularizing, Memory profiles, and Parallel/GPU Processing

Tirthajyoti Sarkar
Hands-On Automated Machine Learning

Hands-On Automated Machine Learning

Sibanjan Das, Umit Mert Cakmak

Publisher Resources

ISBN: 9781789136609Supplemental Content