Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

added shuffle disable option in BucketBatchSampler #5212

Merged
merged 2 commits into from
May 19, 2021

Conversation

ArjunSubramonian
Copy link
Contributor

Changes proposed in this pull request:

  • Added shuffle argument to BucketBatchSampler which allows for disabling shuffling.

Before submitting

  • I've read and followed all steps in the Making a pull request
    section of the CONTRIBUTING docs.
  • I've updated or added any relevant docstrings following the syntax described in the
    Writing docstrings section of the CONTRIBUTING docs.
  • If this PR fixes a bug, I've added a test that will fail without my fix.
  • If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

After submitting

  • All GitHub Actions jobs for my pull request have passed.
  • codecov/patch reports high test coverage (at least 90%).
    You can find this under the "Actions" tab of the pull request once the other checks have finished.

Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

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

LGTM!

allennlp/data/samplers/bucket_batch_sampler.py Outdated Show resolved Hide resolved
@ArjunSubramonian ArjunSubramonian merged commit bd941c6 into main May 19, 2021
@ArjunSubramonian ArjunSubramonian deleted the arjuns/bucket-batch-sampler-shuffle-option branch May 19, 2021 19:19
Abhishek-P pushed a commit to Abhishek-P/allennlp that referenced this pull request Aug 11, 2021
* added shuffle disable option in BucketBatchSampler

* Update allennlp/data/samplers/bucket_batch_sampler.py

Co-authored-by: Pete <[email protected]>

Co-authored-by: Arjun Subramonian <[email protected]>
Co-authored-by: Pete <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants