Skip to content
Browse files

scripts - test set set-up

Ignore-this: 7c1cc0a02fde334fc61a9c33c3c15bf0

darcs-hash:20100119211503-3a4db-55d484e916a3cef4cf556833b622cabb868cc193.gz
  • Loading branch information...
1 parent 7570880 commit b79cc0c99312388448b5ccb4a1453e39d3b154ef @MattShannon committed Jan 19, 2010
Showing with 13 additions and 0 deletions.
  1. +1 −0 scripts/Config.pm.in
  2. +12 −0 scripts/Training.pl
View
1 scripts/Config.pm.in
@@ -156,6 +156,7 @@ $co = 2047; # order of cepstrum to approximate mel-generalized cepstrum
$nState = @NSTATE@; # number of states
$nIte = @NITER@; # number of iterations for embedded training
$beam = '1500 100 5000'; # initial, inc, and upper limit of beam width
+$beamTest = '5000 500 9000'; # beam for test set log prob computation
$maxdev = @MAXDEV@; # max standard dev coef to control HSMM maximum duration
$mindur = @MINDUR@; # min state duration to be evaluated
$wf = @WFLOOR@; # mixture weight flooring
View
12 scripts/Training.pl
@@ -60,6 +60,7 @@
# data location file
$scp{'trn'} = "$datdir/scp/train.scp";
+$scp{'tst'} = "$datdir/scp/test.scp";
$scp{'gen'} = "$datdir/scp/gen.scp";
# model list files
@@ -70,9 +71,11 @@
# master label files
$mlf{'mon'} = "$datdir/labels/mono.mlf";
$mlf{'ful'} = "$datdir/labels/full.mlf";
+$mlf{'tst'} = "$datdir/labels/test.mlf";
# configuration variable files
$cfg{'trn'} = "$prjdir/configs/trn.cnf";
+$cfg{'tst'} = "$prjdir/configs/tst.cnf";
$cfg{'nvf'} = "$prjdir/configs/nvf.cnf";
$cfg{'dump_accs'} = "$prjdir/configs/dump_accs.cnf";
$cfg{'syn'} = "$prjdir/configs/syn.cnf";
@@ -168,6 +171,7 @@
$HCompV = "$HCOMPV -A -C $cfg{'trn'} -D -T 1 -S $scp{'trn'}";
$HInit = "$HINIT -A -C $cfg{'trn'} -D -T 1 -S $scp{'trn'} -m 1 -u tmvw -w $wf";
$HRest = "$HREST -A -C $cfg{'trn'} -D -T 1 -S $scp{'trn'} -m 1 -u tmvw -w $wf";
+$HERest{'tst'} = "$HEREST -A -B -C $cfg{'tst'} -D -T 1 -S $scp{'tst'} -I $mlf{'tst'} -u d -t $beamTest ";
$HERest{'mon'} = "$HEREST -A -C $cfg{'trn'} -D -T 1 -S $scp{'trn'} -I $mlf{'mon'} -m 1 -u tmvwdmv -w $wf -t $beam ";
$HERest{'ful'} = "$HEREST -A -B -C $cfg{'trn'} -D -T 1 -S $scp{'trn'} -I $mlf{'ful'} -m 1 -u tmvwdmv -w $wf -t $beam ";
$HHEd{'trn'} = "$HHED -A -B -C $cfg{'trn'} -D -T 3 -p -i";
@@ -730,6 +734,14 @@ sub make_config {
print CONF "MINDUR = $mindur\n";
close(CONF);
+ open(CONF,">$cfg{'tst'}") || die "Cannot open $!";
+ print CONF "NATURALREADORDER = T\n";
+ print CONF "NATURALWRITEORDER = T\n";
+ print CONF "MAXSTDDEVCOEF = $maxdev\n";
+ print CONF "MINDUR = $mindur\n";
+ print CONF "UPDATEMODE = NONE\n";
+ close(CONF);
+
# config file for model training (without variance flooring)
open(CONF,">$cfg{'nvf'}") || die "Cannot open $!";
print CONF "APPLYVFLOOR = F\n";

0 comments on commit b79cc0c

Please sign in to comment.
Something went wrong with that request. Please try again.