-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
[pack_dataset] don't sort before packing, only pack train #5954
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
examples/seq2seq/minify_dataset.py
Outdated
from pathlib import Path | ||
import fire | ||
|
||
def minify(src_dir: Path, dest_dir: Path, n: int): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: type-hint should be Union[Path, str]
since you wrap src_dir
and dest_dir
in a Path
after.
Codecov Report
@@ Coverage Diff @@
## master #5954 +/- ##
==========================================
+ Coverage 78.52% 78.56% +0.03%
==========================================
Files 146 146
Lines 26314 26314
==========================================
+ Hits 20664 20674 +10
+ Misses 5650 5640 -10
Continue to review full report at Codecov.
|
this is better than sorting.
But for best metrics, don't pack.