Which XGBoost hyperparameters have the biggest impact, and in what tuning order?
mediumAnswer
- First: fix large so the count auto-selects.
- Then tune (roughly in this order): (1) (0.01-0.1); (2) (3-10) or ; (3) (regularization on leaves); (4) subsample and (0.5-1); (5) (0-5); (6) (L1) and (L2).
- Do random or Bayesian search — grid search wastes budget in this many dims.
Check yourself — multiple choice
- Only
- → → → subsample/colsample → gamma →
- The activation function
- The optimizer only
LR + tree size + subsampling + regularization — Bayesian search over them.
#xgboost#gradient-boosting#hyperparameter-tuning
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- What is the role of the learning rate (shrinkage) in GBM?
- What did XGBoost bring on top of vanilla GBM?
- What are monotonic constraints in XGBoost / LightGBM and when do you use them?
- Rule of thumb: when do you pick XGBoost vs LightGBM vs CatBoost?
- How do you choose the regularization strength (lambda / alpha)?
- How do you choose k in k-Nearest Neighbours?