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

[egs] Sample hold-out set fairly #3141

Merged
merged 2 commits into from
Mar 21, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! [egs] Sample hold-out set fairly
  • Loading branch information
kkm committed Mar 19, 2019
commit 905da48d8818b8391f01d2e708efc5a9b2d1e261
4 changes: 2 additions & 2 deletions egs/wsj/s5/steps/nnet3/chain/get_egs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ if [ -f $data/utt2uniq ]; then
"includes all perturbed versions of the same source utterance."
utils/utt2spk_to_spk2utt.pl $data/utt2uniq 2>/dev/null |
awk -v max_utt=$num_utts_subset '{
for(n=1;n<=NF;n++) print $n;
printed += NF;
for (n=2;n<=NF;n++) print $n;
printed += NF-1;
if (printed >= max_utt) nextfile; }' |
sort > $dir/valid_uttlist
else
Expand Down