Skip to main content
  • Agentic AI
  • AI Governance
  • Airflow
  • Anaconda
  • Apache Spark
  • Artificial Intelligence
  • Clustering
  • Dask
  • Data Science
  • Density-based clustering
  • dplyr
  • Factor analysis
  • Feature
  • Feature Engineering
  • Feature Extraction
  • Feature selection
  • Folium
  • GenomicRanges
  • ggmap
  • ggplot
  • GPU
  • Ground Truth
  • Hash table
  • Hyperparameter Tuning
  • Interpretability
  • Jupyter Notebook
  • Kubernetes
  • LLMOps
  • Machine Learning
  • Machine Learning Algorithms
  • MLOps
  • Model Drift
  • Model Evaluation
  • Model monitoring
  • Model Selection
  • Model Tuning
  • Overfitting
  • Plotly
  • PySpark
  • PyTorch
  • Responsible AI
  • Shiny (in R)
  • sklearn
  • Sovereign AI
  • spaCy
  • SR 26-2
  • Statistical Computing Environment (SCE)
  • TensorFlow
  • Underfitting
  • XGBoost
  • XGBoost

    What is XGBoost?

    XGBoost is an open-source, ensemble machine learning algorithm that uses a high-performance implementation of gradient boosted decision trees, where each new tree corrects the errors of the ones before it. An underlying C++ codebase with a Python interface makes it fast, scalable, and usable directly from Python.

    How XGBoost works

    Decision trees

    A tree-like structure where each node represents an attribute and each leaf represents a predicted class or value. Machine learning systems like recommendation engines and diagnostic tools rely on decision trees as a base building block.

    Ensembling

    Combining several models to produce one stronger predictor than any single model could produce alone.

    Boosting

    Training models sequentially, where each new model is trained specifically to correct the errors made by the ones trained before it.

    Gradient boosting

    A boosting method where each new model targets the residual errors, the gap between prediction and actual outcome, left by the prior models. XGBoost extends this with second-order gradients and built-in regularization, part of why it outperforms plain gradient boosting on many tabular problems.

    Why XGBoost matters

    XGBoost's ensemble structure makes it prone to overfitting if left unchecked, since each additional tree keeps chasing smaller errors in the training data. The eta parameter controls this by scaling down how much weight each new tree's correction gets added with, acting as a learning rate; values between 0.1 and 0.3 are typical starting points during model tuning. XGBoost runs on Windows, Linux, and macOS, supports major languages, and can be distributed across Kubernetes, Yarn, or Mesos for large-scale training. XGBoost also outputs feature importance scores natively, which can serve as a first-pass interpretability check before reaching for post-hoc methods like SHAP.

    When to use XGBoost (and when not to)

    XGBoost is a strong default for structured, tabular data, especially when accuracy on a moderate-sized dataset matters more than training speed. It's a weaker fit when interpretability is the top priority, since a simpler model may be easier to justify to a reviewer, when the dataset is small enough that a simpler model won't overfit anyway, or when the data is unstructured, like images or text, where neural networks typically outperform it.

    Comparing XGBoost to other algorithms

    The right choice among boosting algorithms usually comes down to dataset size, categorical features, and how much tuning time is available.

    Algorithm

    Best for

    XGBoost

    Tabular data, competitive accuracy

    Random Forest

    Fast baselines, less tuning

    LightGBM

    Very large datasets, faster training

    For example, a subscription business predicting customer churn might start with a Random Forest baseline, then move to XGBoost once it needs the extra accuracy and has time to tune it properly.

    FAQ

    What is XGBoost used for?

    Structured data problems: classification, regression, ranking, and custom prediction tasks. It's a common choice on Kaggle competitions and in production ML pipelines for the same reason: strong performance on tabular data without heavy feature engineering.

    How does XGBoost prevent overfitting?

    Primarily through the eta (learning rate) parameter, which limits how much each new tree can shift the ensemble's predictions, plus built-in L1/L2 regularization terms in its objective function.

    Can XGBoost handle missing values?

    Yes, natively. It learns a default direction for missing values at each split during training, rather than requiring imputation beforehand.

    Summary

    • How XGBoost works
    • Why XGBoost matters
    • When to use XGBoost (and when not to)
    • Comparing XGBoost to other algorithms
    • FAQ
    Domino's logo

    Who is Domino?

    Domino Data Lab empowers the largest AI-driven enterprises to build and operate AI at scale. Domino’s Enterprise AI Platform provides an integrated experience encompassing model development, MLOps, collaboration, and governance. With Domino, global enterprises can develop better medicines, grow more productive crops, develop more competitive products, and more. Founded in 2013, Domino is backed by Sequoia Capital, Coatue Management, NVIDIA, Snowflake, and other leading investors.

    Watch Demo
    • Platform

        • AI infrastructure
        • Data management
        • AI workbench
        • MLOps
        • AI governance
        • FinOps
        • Pricing
        • Security & compliance
        • What's new
    • Solutions

      • Industries

        • Life sciences
        • Finance
        • Public sector
        • Retail
        • Manufacturing
      • Use Cases

        • Generative AI
        • Cost-effective data science
        • Self-service data science
        • Model risk management
        • Cloud data science
    • Learn

        • Events
        • Blog
        • Podcast
        • Courses and certifications
        • Data Science Dictionary
        • Documentation
        • Support
        • Demo hub
    • Company

        • About
        • Why Domino
        • Careers
        • Sustainability
        • News and press
        • Partners
        • Customers
        • Contact us

    © 2026 Domino Data Lab, Inc. Made in San Francisco.

    • Do not sell my personal information
    • Privacy policy
    • Terms and conditions
    • Security
    • Legal

    CatBoost

    Data with many categorical features

    Home
    Watch Demo
    Watch Demo