Skip to content

Conversation

@justinvyu
Copy link
Contributor

@justinvyu justinvyu commented Oct 7, 2025

Summary

Emit the deprecation warning for the legacy XGBoostTrainer API, in preparation for Train V2 migration (which only supports the new custom training function API).

Links to this issue with migration support: #50042

Example output

/Users/justin/Developer/ray/python/ray/train/xgboost/xgboost_trainer.py:280: RayDeprecationWarning: Passing in `xgboost.train` kwargs such as `params`, `num_boost_round`, `label_column`, etc. to `XGBoostTrainer` is deprecated in favor of the new API which accepts a training function, similar to the other DataParallelTrainer APIs (ex: TorchTrainer). See this issue for more context: https://github.com/ray-project/ray/issues/50042

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
@justinvyu justinvyu requested a review from a team as a code owner October 7, 2025 21:30
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enables deprecation warnings for the legacy XGBoost and LightGBM trainer APIs. The changes look good and achieve the intended goal. My feedback focuses on improving the clarity and consistency of the new user-facing warning messages to ensure they are as helpful as possible.

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
@justinvyu justinvyu enabled auto-merge (squash) October 7, 2025 23:50
@github-actions github-actions bot disabled auto-merge October 7, 2025 23:50
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Oct 7, 2025
@justinvyu justinvyu merged commit 9475779 into ray-project:master Oct 8, 2025
7 of 8 checks passed
@justinvyu justinvyu deleted the xgb_lgbm_deprecations branch October 8, 2025 00:46
liulehui pushed a commit to liulehui/ray that referenced this pull request Oct 9, 2025
…r APIs (ray-project#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
joshkodi pushed a commit to joshkodi/ray that referenced this pull request Oct 13, 2025
…r APIs (ray-project#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Josh Kodi <joshkodi@gmail.com>
ArturNiederfahrenhorst pushed a commit to ArturNiederfahrenhorst/ray that referenced this pull request Oct 13, 2025
…r APIs (ray-project#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
justinyeh1995 pushed a commit to justinyeh1995/ray that referenced this pull request Oct 20, 2025
…r APIs (ray-project#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
xinyuangui2 pushed a commit to xinyuangui2/ray that referenced this pull request Oct 22, 2025
…r APIs (ray-project#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: xgui <xgui@anyscale.com>
elliot-barn pushed a commit that referenced this pull request Oct 23, 2025
…r APIs (#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
…r APIs (ray-project#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
…r APIs (ray-project#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Aydin Abiar <aydin@anyscale.com>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
…r APIs (ray-project#57280)

Emit the deprecation warning for the legacy XGBoostTrainer API, in
preparation for Train V2 migration (which only supports the new custom
training function API).

---------

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Future-Outlier <eric901201@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants