Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dask] Sort and partition for ranking. #11007

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Nov 19, 2024

  • Implement automatic local sort.
  • Implement partitioning by query ID.
  • Document for distributed ranking.

Please see the changes in the tutorial about the new features. In summary, we can now have two different ways to handle query groups in the Dask interface, depending on whether a global sort is desired.

Please note that, this PR ensures the accuracy of the model at a heavy performance price. A global sort is costly and pushing huge amount of small partitions into the QuantileDMatrix is also inefficient.

related:

@trivialfis trivialfis marked this pull request as draft November 19, 2024 19:18
@trivialfis trivialfis force-pushed the dask-sort-qid-1 branch 4 times, most recently from c1195a7 to dc1397f Compare November 21, 2024 15:36
@hcho3 hcho3 closed this Nov 21, 2024
@hcho3 hcho3 reopened this Nov 21, 2024
- Implement automatic local sort.
- Implement partitioning by query ID.
- Document for distributed ranking.
@trivialfis trivialfis changed the title [WIP][Dask] Sort within worker for ranking. [Dask] Sort within worker for ranking. Nov 22, 2024
@trivialfis trivialfis marked this pull request as ready for review November 22, 2024 10:54
@trivialfis trivialfis changed the title [Dask] Sort within worker for ranking. [Dask] Sort and partition for ranking. Nov 23, 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