You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model creation fails with updated XGBoost (β₯ v2.1)Β #1227
I am not sure what exactly was in the old info=list() but probably all these arguments which are now directly passed to the function.
This could be all part of their general R interface overhaul, but I thought I just let you know after I spent some time tracking this down.
For now I downgrade to 2.0.3 and wait until you had the time to update the functionality to match the newer XGBoost releases.
{parsnip} is currently compatible with {xgboost} version 1.7.8.1, which is the most recent CRAN version. This is happening because the {xgboost} R package on CRAN doesn't match the release versions.
It appears that xgboost is gearing up for another CRAN release dmlc/xgboost#9810 so we should get ready for this.
@therealjpetereit is correct, in this PR dmlc/xgboost#9862, they switch from having some arguments passed to xgb.DMatrix() as a named list in info, instead having all of them spelled out in full. They removed the info argument instead of deprecating it, giving us the error, because we pass things to info.
Ideally, {xgboost} would have deprecated info a little more robustly, so I think we need to so some switching on {xgboost} versions or updating {parsnip} once {xgboost} is out.
I have been forced to move to GitHub versions of XGBoost for GPU integrations and even AMD GPU versions lately π
And who can resist installing the latest versions ππ
I believe XGBoost on GitHub is now on version 3.03 - yet the latest CRAN version is 1.7.11.1
The version disparity seems to become rather large =(
Do you plan to adjust the way parsnip ineteracts with XGBoost based on the newer releases or based on CRAN ?
I am not sure what the best solution is either. XGBoost until v 2.03 still works with the current framework.
One of the problems is that they have been taking a while to get the CRAN package up to speed with the other versions they have.
At a glance, it appears like they are keeping it alive and working on CRAN without moving over the new features, hence why there have been recent releases.
Since XGBoost 3.0.0, the latest R package is available on R-universe while the one on CRAN is kept at an older version. We will work on helping the CRAN version to catch up in the future. In the meantime, please use R-universe packages.
Which tripped me up because the DESCRIPTION notes 3.1.0.0.
All in all they just a different versioning system then what we use which is fine.
In the current state I imagine it would take some time for them to update CRAN all the way as the newer versions produces bugs because of the updates they made. Without a deprecation period this will be harder on CRAN.
That being said, we could do some switching based on version numbers as mentioned earlier
downgrading from xgboost_3.1.1.1 (GPU) with parsnip_1.3.3 to xgboost_2.0.3.1 fixed my problem. Just needed to add the device to the function set_engine("xgboost", device = "cuda"). Thx @sjdh!
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Activity
EmilHvitfeldt commentedon Jan 8, 2025
Yes this is indeed a bug. Thanks for catching it!
{parsnip} is currently compatible with {xgboost} version 1.7.8.1, which is the most recent CRAN version. This is happening because the {xgboost} R package on CRAN doesn't match the release versions.
It appears that xgboost is gearing up for another CRAN release dmlc/xgboost#9810 so we should get ready for this.
@therealjpetereit is correct, in this PR dmlc/xgboost#9862, they switch from having some arguments passed to
xgb.DMatrix()as a named list ininfo, instead having all of them spelled out in full. They removed theinfoargument instead of deprecating it, giving us the error, because we pass things toinfo.Ideally, {xgboost} would have deprecated
infoa little more robustly, so I think we need to so some switching on {xgboost} versions or updating {parsnip} once {xgboost} is out.CRAN versions
Created on 2025-01-07 with reprex v2.1.1
therealjpetereit commentedon Jan 8, 2025
Yes,
I have been forced to move to GitHub versions of XGBoost for GPU integrations and even AMD GPU versions lately π
And who can resist installing the latest versions ππ
Cheers
J
simonpcouch commentedon Jan 9, 2025
Noting that this is likely related to / duplicate of #1087. :)
EmilHvitfeldt commentedon Jan 9, 2025
appears to be separate issue. but will hit us at the same time when they release to CRAN :)
simonpcouch commentedon Jan 21, 2025
Noting a tag in dmlc/xgboost#9810 (comment) that has some higher-level information.
sjdh commentedon May 15, 2025
For anyone trying to run parsnip with xgboost on the GPU: the combination
parnsip 1.3.1andxgboost 2.0.3works.therealjpetereit commentedon Aug 11, 2025
Hi all,
I believe XGBoost on GitHub is now on version 3.03 - yet the latest CRAN version is 1.7.11.1
The version disparity seems to become rather large =(
Do you plan to adjust the way parsnip ineteracts with XGBoost based on the newer releases or based on CRAN ?
I am not sure what the best solution is either. XGBoost until v 2.03 still works with the current framework.
Cheers
J
EmilHvitfeldt commentedon Aug 11, 2025
One of the problems is that they have been taking a while to get the CRAN package up to speed with the other versions they have.
At a glance, it appears like they are keeping it alive and working on CRAN without moving over the new features, hence why there have been recent releases.
For our notes:
https://xgboost.readthedocs.io/en/stable/R-package/index.html
And they say to install from r-universe which is currently using version 3.0.4.1
https://dmlc.r-universe.dev/xgboost
Which tripped me up because the DESCRIPTION notes 3.1.0.0.
All in all they just a different versioning system then what we use which is fine.
In the current state I imagine it would take some time for them to update CRAN all the way as the newer versions produces bugs because of the updates they made. Without a deprecation period this will be harder on CRAN.
That being said, we could do some switching based on version numbers as mentioned earlier
therealjpetereit commentedon Sep 9, 2025
Hi,
I guess version switching might be the way to go.
I think essential functions are all the same apart from the input for the xgb DMatrix creation.
Let me know if and when you get a chance to implement that. Not urgent.
Cheers
J
LucasMS commentedon Oct 24, 2025
downgrading from xgboost_3.1.1.1 (GPU) with parsnip_1.3.3 to xgboost_2.0.3.1 fixed my problem. Just needed to add the device to the function
set_engine("xgboost", device = "cuda"). Thx @sjdh!github-actions commentedon Dec 14, 2025
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.