liveBook · Manning

Ensemble

As explained in Experimentation for Engineers

A model ensemble is a collection of predictive models whose predictions or decisions are combined, compared, or otherwise used collectively.

An ensemble is a collection of similarly purposed predictive models. Models may be averaged, compared, or used collectively; here, one model is selected randomly for each recommender decision rather than averaging predictions. section 5.3.1 section 5.3

Figure 5.8 Thompson sampling alters both the fit and the policy. You fit several models—called an ensemble—instead of just one. The policy uses a different, randomly selected model for each decision it makes.
05-08

Shows how ensemble construction changes both offline fitting and online policy selection: several models are fitted, then one is randomly selected per decision. section 5.3

Build and operate an ensemble through this workflow:

  • Draw a bootstrap sample with replacement from logged samples; duplicates are allowed, and the resampled set may differ in size. section 5.3.1
  • Fit a model, such as a linear regression, on each bootstrap sample and repeat until the ensemble has the desired number of models. section 5.3.1
  • At decision time, select a model uniformly at random, then choose the action that model predicts will produce the highest reward. section 5.3
  • Treat disagreement across similarly fitted models as uncertainty: actions selected by more models receive higher probability, while increasing certainty reduces exploration. section 5.3.2

Ten-model post recommendation

Suppose ten equally believable models evaluate two posts. If seven select post #1 as best and three select post #2, randomized probability matching displays post #1 with probability 7/10 and post #2 with probability 3/10. The policy therefore explores in proportion to model disagreement instead of assigning a fixed fraction of decisions to arbitrary actions. section 5.3.2

How Experimentation for Engineers covers it

How deep it goes
Defines ensembles, explains bootstrap construction, and traces online selection, but does not develop general ensemble averaging.
Examples
Uses resampled visit data, a bootstrap regression recommender, and ten models choosing between two posts.
What it assumes
Assumes logged samples, predictive modeling, and linear regression while explaining bootstrap resampling from basic mechanics.
What you can do after
Apply Thompson sampling by fitting bootstrap models and randomly selecting one to choose each highest-reward action.
How it connects
Connects bootstrap sampling, linear regression, Thompson sampling, contextual bandits, and randomized probability matching.

Also explained in

Compare how 11 books explain ensemble →

Related concepts

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