← All interview questions

Skill Zuno · skillzunos.com · Python ML

XGBoost interview questions

Prepare for XGBoost interviews on Skill Zuno. This practice book covers XGBoost interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open XGBoost on Skill Zuno

Also see the XGBoost tutorial.

XGBoost (eXtreme Gradient Boosting) is an optimised library for gradient boosted trees, widely used in industry and in data science competitions. It adds regularisation to the boosting objective, uses second-order gradients, handles missing values and trains quickly in parallel on CPU or GPU. This subject covers XGBoost for regression and general use: its objective, key parameters and APIs.

Sample XGBoost interview questions

What makes XGBoost faster and more accurate than basic gradient boosting?

It uses second-order gradient information, adds L1 and L2 penalties on leaf weights, uses histogram-based split finding, runs split search in parallel, and handles sparse data efficiently.

How does XGBoost handle missing values?

At each split it tries sending missing values left and right and learns the direction that reduces loss most, so no imputation is required.

What does min_child_weight control?

The minimum sum of instance weights (the hessian) needed in a child node. Larger values stop the tree from creating leaves backed by very little data, which reduces overfitting.

What is the role of gamma in XGBoost?

gamma, or min_split_loss, is the minimum loss reduction required to make a split. Larger values make the algorithm more conservative and produce smaller trees.

Which objective do you use for regression in XGBoost?

reg:squarederror is the default. reg:absoluteerror suits data with outliers, and count or skewed targets can use count:poisson or reg:tweedie.

What you can practice

  • XGBoost interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Python ML topics alongside XGBoost on skillzunos.com

More Python ML interview questions

All interview questions