xgboost breaking changes
xgboost 2.0.0 (September 12, 2023) is its newest release with breaking changes, 16 of them. The first: Scala-based tracker removed from JVM packages in xgboost 2.0.0. Every breaking API change we have recorded in xgboost on PyPI: 16 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.4.1, released August 15, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
xgboost 2.0.0 breaking changes
- Removed
The Scala-based tracker has been removed from the JVM packages. github.com - Removed
cpu_predictor
Use the device parameter instead of cpu_predictor. github.com - Removed
DeviceQuantileDmatrix
Use QuantileDMatrix in place of DeviceQuantileDmatrix in JVM packages. github.com - Removed
gpu_coord_descent
Use the device parameter instead of gpu_coord_descent. github.com - Removed
gpu_id
Use the device parameter to select the device and its ordinal instead of gpu_id. github.com - Removed
gpu_predictor
Use the device parameter instead of gpu_predictor. github.com - Removed
ntree_limit
The ntree_limit argument was removed; it had been deprecated in earlier versions. github.com - Removed
predictor
The predictor parameter no longer exists; device selects where prediction runs. github.com - Removed
save_model
Parameters in the save_model call for the scikit-learn interface were removed. github.com - Behavior changed
Users must specify the format for text input; prefer numpy arrays or other data structures instead. github.com - Behavior changed
The old setup.py is replaced by pyproject.toml; consult the latest docs for build and install instructions. github.com - Behavior changed
best_iteration
best_iteration is now set only if early stopping is used, matching the documented behavior. github.com - Behavior changed
DataIter
DataIter now accepts only keyword arguments; update calls that pass positional arguments. github.com - Behavior changed
sklearn
Feature validation is now immutable; check code that relied on earlier validation behavior. github.com - Default changed
objective
For learning-to-rank, NDCG is now the default objective function. github.com - Default changed
tree_method
Previously XGBoost chose approx or exact automatically; now hist is the default, so set tree_method explicitly to keep old behavior. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.