gradient-boosting-tuning
/gradient-boosting-tuning
Tune gradient-boosted trees (XGBoost, LightGBM, CatBoost) effectively: the parameters that matter and the order to tune them. Use when using gradient boosting on tabular data and wanting real gains from tuning.
- Author
- Amey-Thakur ↗
- Repository
- AI-SKILLS ↗
- Licence
- MIT
- Last repository change
- 05.09.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Tune gradient-boosted trees (XGBoost, LightGBM, CatBoost) effectively: the parameters that matter and the order to tune them. Use when using gradient boosting on tabular data and wanting real gains from tuning.
Original author description
Tune gradient-boosted trees (XGBoost, LightGBM, CatBoost) effectively: the parameters that matter and the order to tune them. Use when using gradient boosting on tabular data and wanting real gains from tuning.
How it works
- Method
- Boundaries
SKILL.md preview
--- name: gradient-boosting-tuning description: "Tune gradient-boosted trees (XGBoost, LightGBM, CatBoost) effectively: the parameters that matter and the order to tune them. Use when using gradient boosting on tabular data and wanting real gains from tuning." --- # Gradient boosting tuning Gradient-boosted trees are the workhorse of tabular ML and Kaggle. They work well at defaults, which is exactly why undisciplined tuning wastes time for marginal gains. Knowing which parameters matter, and tuning them in the right order against honest validation, is the skill. ## Method 1. **Start from good defaults and a strong baseline.** LightGBM, XGBoost, and CatBoost perform well out of the box; tune to squeeze the last few percent, after features (which matter more; see feature-engineering-tabular). Fix a trustworthy cross-validation first, because you will make dozens of comparisons against it (see cross-validation). 2. **Tune the parameters that control complexity first.** The highest-impact knobs govern how complex each tree gets and how much the model can fit: number of leaves / max depth, and minimum samples per leaf. These trade underfitting against overfitting more than anything else; get them roughly right before fine-tuning the rest. 3. **Pair learning rate with number of trees, using early stopping.** Lower learning rate plus more trees generally improves accuracy at the cost of time. Do not tune tree count by hand: set a low learning rate and a high cap, and let early stopping on the validation fold pick the count. This single mechanism tunes the most sensitive interaction for free. 4. **Add regularization to fight overfitting.** Subsampling rows (bagging fraction) and columns (feature fraction) per tree, plus L1/L2 penalties, reduce overfitting and often improve generalization. Turn these up when train score far exceeds validation. 5. **Search efficiently, not exhaustively.** Random or Bayesian search (Optuna) over the parameters above beats grid search at equal budget; set a budget and stop (see hyperparameter-tuning). Guard the validation set: hundreds of trials overfit to it, so confirm the final config generalizes and expect the leaderboard/test to come in slightly under the tuned CV. 6. **Handle categoricals and imbalance with the library's tools.** LightGBM and CatBoost take categorical features directly (often better than manual encoding); set class weights or `scale_pos_weight` for imbalance rather than blindly resampling (see imbalanced-data). Use the library's native handling before hand-rolling. ## Boundaries - Tuning yields modest gains compared to features and ensembling; on a plateau, add signal or diverse models rather than more trials (see feature-engineering-tabular, model-ensembling). - The three libraries differ in defaults, categorical handling, and speed; the tuning principles transfer, the exact parameter names and best values do not, so read the specific library's docs. - Boosted trees overfit noisy targets readily; strong regularization and honest validation matter more the noisier the problem, and sometimes a simpler model generalizes better (see ml-baselines).
Versions
The database has no other skills named gradient-boosting-tuning.
Database snapshot: 13.11.2026 · package version 2f322329edc5 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 4 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90ml-classical-ml
Use this skill when asked about scikit-learn, XGBoost, LightGBM, CatBoost, regression, classification, clustering, ensemble, random forest, gradient boosting, SVM, PCA, feature importance, or cross-validation. This skill enforces: supervised learning pipelines (regression and… - 100lightgbm
Expert LightGBM assistance covering leaf-wise tree growth, histogram-based gradient boosting, and GPU acceleration. Use when training fast, memory-efficient tabular models on large datasets. - 100xgboost
Expert XGBoost assistance covering extreme gradient boosting, tree pruners, DMatrix, GPU hist tree method, and early stopping. Use when training high-accuracy tabular models for competitions and production. - 90gradient-boosted-tree-vs-neural-net-tradeoffs
Use when a signal's architecture is still open between gradient-boosted trees on tabular features and a deep network on raw sequences; produces an evidence-tagged prior from published benchmarks, to be tested rather than trusted. - 95lightgbm-analysis
Use when training a LightGBM model on tabular data in R and returning model metrics, feature importance ranking tables, and feature importance plots. - 100machine-learning
Use when predicting a column from rows of tabular features with classic models — scikit-learn pipelines, RandomForest, XGBoost/LightGBM, leak-free cross-validation, metrics for imbalanced classes, or a model that aced CV then collapsed in production. NOT PyTorch neural nets…