Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions content/blog/tidymodels-xgboost/index.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
output: hugodown::hugo_document

slug: tidymodels-xgboost
title: tidymodels & xgboost
date: 2025-12-05
author: Emil Hvitfeldt
description: >
The tidymodels ecosystem is prepared for big xgboost CRAN release.

photo:
url: https://unsplash.com/photos/person-in-green-jacket-and-black-pants-riding-black-snowboard-on-snow-covered-mountain-during-daytime-l6ZJR-7ZpQY
author: Markos Mant

categories: [other]
tags: [tidymodels]
---

The [xgboost](https://xgboost.readthedocs.io/en/stable/r_docs/R-package/docs/index.html) library has recently gotten a big CRAN release. Jumping from version 1.7.11.1 to 3.1.2.1. We at the tidymodels team have been following the development and have done our best to ensure that your experience is unaffected by this release.

In addition to all the new features and improvements that are now available for users relying on CRAN versions of packages, there are also a few breaking changes. Specifically between version 1.x and 2.x of the xgboost library. The xgboost team has kindly provided a [migration guide](https://xgboost.readthedocs.io/en/stable/R-package/migration_guide.html) for how to update your code if you are upgrading from before version 2.x.

If you are using xgboost purely through tidymodels via functions like [`parsnip::boost_tree()`](https://parsnip.tidymodels.org/reference/boost_tree.html) and [`embed::step_discretize_xgb()`](https://embed.tidymodels.org/reference/step_discretize_xgb.html), you should not need to change anything, as we have updated our packages to work with both the new and old versions of xgboost. If you are having any issues, please let us know by filing an issue for the affected package.

We look forward to integrating parsnip more deeply into these new changes, such as support for [categorical predictors](https://xgboost.readthedocs.io/en/stable/tutorials/categorical.html) and [quantile regression](https://xgboost.readthedocs.io/en/stable/python/examples/quantile_regression.html#quantile-regression).

Here are the package that we've updated or helped the maintainers update

- [parsnip](https://parsnip.tidymodels.org/news/index.html#parsnip-140)
- [tidypredict](https://tidypredict.tidymodels.org/news/index.html#tidypredict-100)
- [embed](https://embed.tidymodels.org/news/index.html#embed-121)
- [butcher](https://butcher.tidymodels.org/news/index.html#butcher-040)
- [lime](https://github.com/tidymodels/lime)
- [bundle](https://rstudio.github.io/bundle/dev/news/index.html#bundle-development-version)
- [vetiver](https://rstudio.github.io/vetiver-r/dev/index.html)
- [xf](https://github.com/holub008/xrf/releases/tag/0.3.0)
- [modeltime](https://business-science.github.io/modeltime/)

38 changes: 38 additions & 0 deletions content/blog/tidymodels-xgboost/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
output: hugodown::hugo_document

slug: tidymodels-xgboost
title: tidymodels & xgboost
date: 2025-12-05
author: Emil Hvitfeldt
description: >
The tidymodels ecosystem is prepared for big xgboost CRAN release.

photo:
url: https://unsplash.com/photos/person-in-green-jacket-and-black-pants-riding-black-snowboard-on-snow-covered-mountain-during-daytime-l6ZJR-7ZpQY
author: Markos Mant

categories: [other]
tags: [tidymodels]
---

The [xgboost](https://xgboost.readthedocs.io/en/stable/r_docs/R-package/docs/index.html) library has recently gotten a big CRAN release. Jumping from version 1.7.11.1 to 3.1.2.1. We at the tidymodels team have been following the development and have done our best to ensure that your experience is unaffected by this release.

In addition to all the new features and improvements that are now available for users relying on CRAN versions of packages, there are also a few breaking changes. Specifically between version 1.x and 2.x of the xgboost library. The xgboost team has kindly provided a [migration guide](https://xgboost.readthedocs.io/en/stable/R-package/migration_guide.html) for how to update your code if you are upgrading from before version 2.x.

If you are using xgboost purely through tidymodels via functions like [`parsnip::boost_tree()`](https://parsnip.tidymodels.org/reference/boost_tree.html) and [`embed::step_discretize_xgb()`](https://embed.tidymodels.org/reference/step_discretize_xgb.html), you should not need to change anything, as we have updated our packages to work with both the new and old versions of xgboost. If you are having any issues, please let us know by filing an issue for the affected package.

We look forward to integrating parsnip more deeply into these new changes, such as support for [categorical predictors](https://xgboost.readthedocs.io/en/stable/tutorials/categorical.html) and [quantile regression](https://xgboost.readthedocs.io/en/stable/python/examples/quantile_regression.html#quantile-regression).

Here are the package that we've updated or helped the maintainers update

- [parsnip](https://parsnip.tidymodels.org/news/index.html#parsnip-140)
- [tidypredict](https://tidypredict.tidymodels.org/news/index.html#tidypredict-100)
- [embed](https://embed.tidymodels.org/news/index.html#embed-121)
- [butcher](https://butcher.tidymodels.org/news/index.html#butcher-040)
- [lime](https://github.com/tidymodels/lime)
- [bundle](https://rstudio.github.io/bundle/dev/news/index.html#bundle-development-version)
- [vetiver](https://rstudio.github.io/vetiver-r/dev/index.html)
- [xf](https://github.com/holub008/xrf/releases/tag/0.3.0)
- [modeltime](https://business-science.github.io/modeltime/)

Binary file added content/blog/tidymodels-xgboost/thumbnail-sq.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/blog/tidymodels-xgboost/thumbnail-wd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.