Skip to content

[breaking] Remove dask from the default import. - #10935

Merged
trivialfis merged 5 commits into
dmlc:masterfrom
trivialfis:dask-rm-init
Oct 29, 2024
Merged

trivialfis merged 5 commits into
dmlc:masterfrom
trivialfis:dask-rm-init

Conversation

@trivialfis

@trivialfis trivialfis commented Oct 27, 2024 •

Copy link
Copy Markdown
Member

This aligns with the spark package and simplifies the imports significantly. We will work on improved learning to rank support and basic resilience.

This is a breaking change as:

xgboost.dask.DaskDMatrix()

will stop working. One needs to import the dask module independently:

from xgboost.dask import DaskDMatrix
from xgboost import dask as dxgb

@trivialfis
trivialfis requested a review from chyunsu3 October 27, 2024 16:47

@wphicks wphicks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is the primary goal here code simplification through elimination of lazy loading?

@trivialfis

Copy link
Copy Markdown
Member Author

@wphicks For both simplification with consistency with the spark package.

@trivialfis
trivialfis merged commit 9e81fb3 into dmlc:master Oct 29, 2024
@trivialfis
trivialfis deleted the dask-rm-init branch October 29, 2024 18:32
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants