Repository navigation
Conversation
Signed-off-by: Vcode2407 <174947873+Vcode2407@users.noreply.github.com>
Author
|
Hi, could a maintainer vet this PR and approve the Style workflow? DCO passed, and the sampling regression tests passed locally. Thanks! Style workflow 🤖🤖🤖 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR description
The Needle-in-a-Haystack setup reads the source row by index label
0. Sampling preserves the original pandas labels, so the benchmark can raiseKeyErroror pick a different row from the first one in the sample. A small sampling fraction can also discard the benchmark's single source document when the requested count rounds to zero.The setup now takes the first row by position. Evaluation sampling keeps at least one row when the source dataset is nonempty and still uses the configured seed.
The row-selection regressions cover a missing label
0and a label0that belongs to a later row. Both failed before the fix. The sampling tests cover retaining the single source row and matching the existing seeded selection for a larger dataset. All 11 focused tests passed.Checklist
make testsuitemake stylecheckgit commit -s🤖🤖🤖