liveBook · Manning

Diversity

As explained in Ensemble Methods for Machine Learning

Ensemble diversity is the degree to which the component models in an ensemble make different predictions or capture different aspects of the data.

Ensemble diversity is the useful difference among an ensemble’s component models: they should bring different opinions to a prediction rather than repeat the same mistake. Aggregating varied predictions can cancel some individual errors, making the combined model more robust and better able to generalize than a single estimator. section 1.1 section 1.4

Figure 1.7 Our first ensemble method ensembles the predictions of six different regression models by averaging them. This simple ensemble illustrates two key principles of ensembling: (1) model diversity, achieved in this case by using six different base machine-learning models; and (2) model aggregation, achieved in this case by simple averaging across predictions.
CH01_F07_Kunapuli

Six regression models make separate predictions, then their predictions are averaged. The example separates diversity in the base models from aggregation in the final prediction. section 1.4

Diversity and model aggregation are complementary ingredients. Diversity supplies distinct errors and perspectives; aggregation turns those separate outputs into one prediction, such as a majority decision for classification or a mean for regression. Agreement is common on easy cases, while difficult cases expose more variation among individual models. section 1.1 section 1.4

Parallel ensembles create diversity in two main ways:

  • Homogeneous ensembles keep one learning algorithm but vary its training data. Bootstrap sampling draws same-size samples with replacement, so each base estimator sees a different pattern of repeated and omitted examples. section 2.2.1 section 7.2
  • Heterogeneous ensembles keep the data fixed but use different base-learning algorithms, such as a decision tree, support vector machine, and neural network. section 3.0 section 7.2
  • Variants including pasting, random subspaces, random patches, and Extra Trees introduce randomization in different ways to ensure diversity. section 2.4

A simple diverse regression ensemble

Train Kernel Ridge, support vector, decision-tree, nearest-neighbor, Gaussian-process, and neural-network regressors on a generated regression data set. Collect each test prediction in a matrix and average across models. As combinations grow from one model to all six, mean performance increases and variation among ensemble combinations decreases. section 1.4 section 1.4

Diversity is not guaranteed merely by having many models. An effective ensemble needs estimators that are genuinely different enough not to fail together. In bagging-style methods, resampling creates those differences; in heterogeneous methods, algorithm choice does. Stacking can further use cross-validation so base estimators see different data subsets, though it can increase training time and may overfit on noisy data. section 2.1 section 3.5

From competition blends to regression

Large recommendation-system ensembles combined many diverse models and features to improve predictions beyond individual approaches. The same principle applies to continuous labels: independently trained regression estimators can be fused into a joint prediction, such as predicting vehicle fuel efficiency from engine attributes. section 1.0 section 7.2

How Ensemble Methods for Machine Learning covers it

How deep it goes
Explains diversity intuitively and procedurally through algorithm choice, resampling, aggregation, and stacking tradeoffs without formal diversity metrics.
Examples
Uses medical diagnosis voting, six averaged regressors, Netflix Prize model blends, and AutoMPG fuel-efficiency prediction.
What it assumes
Builds from base estimators, training data, and predictions while introducing bootstrap sampling from zero.
What you can do after
Apply it via scikit-learn and NumPy by training varied estimators, collecting predictions, and averaging them.
How it connects
Connects ensemble diversity to model aggregation, bootstrap sampling, bagging, random forests, stacking, blending, and cross-validation.

Also explained in

Compare how 7 books explain diversity →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Ensemble Methods for Machine Learning. The section links point to the parts of the book it draws on.