1. University MCA (AI/ML) Semester 2
  2. CAB212
  3. Unit 4

CAB212 · Unit 4: Ensemble learning

Boosting: AdaBoost and gradient boosting

8 practice questions

Key points

  • Sequential weak learners
  • AdaBoost reweights samples
  • Gradient boosting fits residuals
  • Boosting mostly reduces bias

Boosting trains weak learners sequentially, each focusing on the mistakes of the previous ones. It mainly reduces bias (and can also reduce variance).

AdaBoost: start with equal sample weights. After each weak learner (often a depth-1 tree, a "stump"), increase the weights of misclassified samples. Each learner gets a vote weight alpha = 0.5 ln((1 - err)/err); more accurate learners get larger alpha. Final prediction is a weighted vote.

Gradient boosting: each new tree fits the residuals (negative gradient of the loss) of the current ensemble: F_m = F_{m-1} + eta * h_m, where eta is the learning rate (shrinkage). Implementations: XGBoost, LightGBM, CatBoost.

Bagging / RFBoosting
TrainingParallelSequential
LearnersStrong, deepWeak, shallow
ReducesVarianceBias (and variance)
Noise sensitivityRobustMore sensitive

Exam pitfall: a small learning rate needs more trees but usually generalizes better.

Try two questions

Question 1 · Tier 2, Understand

In gradient boosting for regression with squared error, each new tree is fitted to the:

  1. Residuals of the current ensemble
  2. Labels of the test set
  3. Original targets again, ignoring earlier trees
  4. Feature means of the training set
Show the answer

A. Residuals equal the negative gradient of squared error.

Question 2 · Tier 1, Recall

Boosting trains its base learners:

  1. Sequentially
  2. In parallel independently
  3. Only once
  4. Without data
Show the answer

A. Each learner depends on previous errors.