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

[Data][Doc] Add doc to summarize different shuffle options #42358

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

c21
Copy link
Contributor

@c21 c21 commented Jan 12, 2024

Why are these changes needed?

Improve the section in documentation to summarize different shuffle options, so users have a place to understand what shuffle options we have.

Related issue number

Closes #41970

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Copy link
Member

@bveeramani bveeramani left a comment

Choose a reason for hiding this comment

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

Nice


.. tip::

This is the fastest option for shuffle, and is purely metadata operation. This
Copy link
Member

Choose a reason for hiding this comment

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

I feel like a word is missing here?

Suggested change
This is the fastest option for shuffle, and is purely metadata operation. This
This is the fastest option for shuffle, and is a purely metadata operation. This

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

.. tip::

This is the fastest option for shuffle, and is purely metadata operation. This
option does not shuffle the actual rows inside files, so the randomness would be
Copy link
Member

Choose a reason for hiding this comment

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

https://developers.google.com/style/contractions#:~:text=In%20particular%2C%20it's%20fine%20to,misread%20don't%20as%20do.

Suggested change
option does not shuffle the actual rows inside files, so the randomness would be
option doesn't shuffle the actual rows inside files, so the randomness might be

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

@@ -323,8 +375,8 @@ To randomly shuffle all rows, call :meth:`~ray.data.Dataset.random_shuffle`.

.. tip::

:meth:`~ray.data.Dataset.random_shuffle` is slow. For better performance, try
:ref:`Iterating over batches with shuffling <iterating-over-batches-with-shuffling>`.
This is the slowest option for shuffle, and requires tranasferring data across
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This is the slowest option for shuffle, and requires tranasferring data across
This is the slowest option for shuffle, and requires transferring data across

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my bad, updated.

Signed-off-by: Cheng Su <[email protected]>
@c21 c21 merged commit 0bcdaa8 into ray-project:master Jan 12, 2024
9 checks passed
@c21 c21 deleted the shuffle-doc branch January 12, 2024 18:15
vickytsang pushed a commit to ROCm/ray that referenced this pull request Jan 12, 2024
…ct#42358)

Improve the section in documentation to summarize different shuffle options, so users have a place to understand what shuffle options we have.

Signed-off-by: Cheng Su <[email protected]>
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.

[data][docs] Improve user guides on randomly shuffling datasets
3 participants