liveBook · Manning

Weak learner

As explained in Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

A predictive model that performs only slightly better than a simple baseline and is combined with other models in an ensemble.

A weak learner is a simple, fast-to-train model that performs better than random guessing or only slightly better than a basic baseline. Its main value appears when many such models are combined into an ensemble. section 5.1.1 section 5.2

Weak learners take different roles in ensemble methods:

  • Averaging combines predictions from multiple models, often trading a small increase in bias for lower variance. section 5.1.1
  • Bagging can combine decision trees, while earlier averaging approaches commonly used simple models such as linear regression or k-nearest neighbors. section 5.1.1
  • AdaBoost fits weak learners sequentially, giving more weight to incorrectly predicted observations before combining results by voting or averaging. section 5.2
  • Gradient boosting adds tree models one at a time, with each tree correcting errors left by the previous ensemble. section 5.2

Choosing more weak learners in XGBoost

Increasing XGBoost’s n_estimators adds more decision trees and can improve predictions, but it also increases training time. The useful number of trees depends on the learning rate and the problem’s performance on unseen data. section 5.4.1

Figure 5.5 How gradient descent works with boosted trees

Use the figure to see how successive boosted trees reduce residual error through gradient-descent-style corrections. section 5.2

How Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI covers it

How deep it goes
Explains weak learners through bias, variance, sequential correction, and weighting, but does not derive their mathematics.
Examples
Uses linear regression, k-nearest neighbors, decision trees, AdaBoost, and XGBoost’s n_estimators parameter as concrete examples.
What you can do after
Apply via XGBoost by balancing the number of weak learners, learning rate, predictive performance, and training time.
How it connects
Connects weak learners to ensemble learning, bagging, AdaBoost, gradient boosting, decision trees, linear regression, and k-nearest neighbors.

Also explained in

Compare how 3 books explain weak learner →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI. The section links point to the parts of the book it draws on.