December 2016
Beginner
388 pages
8h 35m
English
Ensemble learning, or ensembling, is the process of combining multiple predictive models to produce a supermodel that is more accurate than any individual model on its own.
Imagine that we are working on a binary classification problem (predicting either 0 or 1).
# ENSEMBLING import numpy as np # set a seed for reproducibility np.random.seed(12345) # generate 1000 random numbers (between 0 and 1) for each model, representing 1000 observations mod1 = np.random.rand(1000) mod2 = np.random.rand(1000) mod3 = np.random.rand(1000) mod4 = np.random.rand(1000) ...
Read now
Unlock full access