How does gradient boosted classification map tree outputs to predicted class probabilities?

Quick Overview

Asks how a gradient boosted classifier turns the summed outputs of its trees into class probabilities for binary and multiclass problems. Tests understanding of raw scores, link functions, log loss, library prediction options and probability calibration.

How does gradient boosted classification map tree outputs to predicted class probabilities?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does gradient boosted classification map tree outputs to predicted class probabilities? Cover both binary and multiclass problems. ```hint Start from the loss Think about which loss a boosted classifier minimizes and which quantity the trees are fitting gradients of. Tree leaves hold arbitrary real numbers. ``` ### What a Strong Answer Covers - How the trees' outputs combine into a raw score, including the initial score and the learning rate. - The function that turns the raw score into a probability in the binary case and in the multiclass case, and how many trees each boosting round adds. - Why the model accumulates an unbounded score and transforms it only at the end. - How to get raw scores versus probabilities from common libraries. - When the resulting probabilities may need recalibration. ### Follow-up Questions - If one tree adds +0.5 to the raw score, how much does the predicted probability change, and why does the answer depend on the current score? - How would you set the initial score for a multiclass problem? - Why does upweighting the positive class distort predicted probabilities, and how would you correct it? - How do SHAP values for a boosted classifier relate to its raw score?

Overview: Asks how a gradient boosted classifier turns the summed outputs of its trees into class probabilities for binary and multiclass problems. Tests understanding of raw scores, link functions, log loss, library prediction options and probability calibration.

PracHub logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

How does gradient boosted classification map tree outputs to predicted class probabilities? Cover both binary and multiclass problems.

What a Strong Answer Covers Guidance

  • How the trees' outputs combine into a raw score, including the initial score and the learning rate.
  • The function that turns the raw score into a probability in the binary case and in the multiclass case, and how many trees each boosting round adds.
  • Why the model accumulates an unbounded score and transforms it only at the end.
  • How to get raw scores versus probabilities from common libraries.
  • When the resulting probabilities may need recalibration.

Follow-up Questions Guidance

  • If one tree adds +0.5 to the raw score, how much does the predicted probability change, and why does the answer depend on the current score?
  • How would you set the initial score for a multiclass problem?
  • Why does upweighting the positive class distort predicted probabilities, and how would you correct it?
  • How do SHAP values for a boosted classifier relate to its raw score?