XGBoosting Home | About | Contact | Examples

Prediction

Helpful examples for making predictions with XGBoost models.

Making predictions with XGBoost models involves using a trained XGBoost model to input new data and generate output values, such as classifications or regression predictions, based on the learned patterns from the training data.

ExamplesTags
Bagging Ensemble With XGBoost Models
Deploy XGBoost Model As Service with FastAPI
Deploy XGBoost Model As Service with Flask
Fit Final XGBoost Model and Predict on Out-Of-Sample Data
Fit Final XGBoost Model With Early Stopping and Predict on Out-Of-Sample Data
Improve XGBoost Model Accuracy (Skill)
Predict Calibrated Probabilities with XGBoost
Predict Class Labels with XGBoost
Predict Class Probabilities with XGBoost
Predict Integer Values with XGBoost Regression
Predict Numeric Values with XGBoost Regression
Predict with XGBoost's Native API
Predict with XGBoost's scikit-learn API
Stacking Ensemble With One XGBoost Base Model (Heterogeneous Ensemble)
Stacking Ensemble With XGBoost Base Models (Homogeneous Ensemble)
Stacking Ensemble With XGBoost Meta Model (Final Model)
Thread-Safe Predictions with XGBoost
Voting Ensemble With an XGBoost Model
XGBoost booster.predict() vs XGBClassifer.predict()
XGBoost booster.predict() vs XGBRegressor.predict()
XGBoost Configure The Number of BLAS Threads
XGBoost Configure The Number of OpenMP Threads
XGBoost Convert Predicted Probabilties to Class Labels
XGBoost Early Stopping Get Best Model
XGBoost for Time Series Plot Actual vs Predicted
XGBoost for Time Series Predict Multiple Time Steps
XGBoost for Time Series Predict One Time Step
XGBoost for Time Series Predict Out-Of-Sample
XGBoost Horizontal Ensemble (via "iteration_range" Parameter)
XGBoost Incremental Round Ablation via "iteration_range"
XGBoost Model Slicing
XGBoost Multi-Core Training and Prediction
XGBoost Multiple CPUs for Training and Prediction
XGBoost Multithreaded Training and Prediction
XGBoost Parallel Prediction With a Process Pool (multiprocessing)
XGBoost Parallel Prediction With a Process Pool and Shared Memory
XGBoost Parallel Prediction With a Thread Pool (threading)
XGBoost Single-Threaded Training and Prediction (no threads)
XGBoost Stable Predictions Via Ensemble of Final Models