Permalink
Browse files

scripts - test set log prob computation

Ignore-this: 5e8b58c8020f14264de713f7eb0c3ff6

darcs-hash:20100119211541-3a4db-845f2d7d6efb09b5e4d35d20685090c6ef0c392f.gz
  • Loading branch information...
1 parent b79cc0c commit ec37b92716088f43a51359a3a5f1d125cd8be732 @MattShannon committed Jan 19, 2010
Showing with 16 additions and 0 deletions.
  1. +1 −0 scripts/Config.pm.in
  2. +15 −0 scripts/Training.pl
View
@@ -231,5 +231,6 @@ $ERST4 = 1; # embedded reestimation (re-clustered)
$MKUN1 = 1; # making unseen models (1mix)
$PGEN1 = 1; # generating speech parameter sequences (1mix)
$WGEN1 = 1; # synthesizing waveforms (1mix)
+$LTST1 = 1; # computing log prob on test set (1mix)
1;
View
@@ -526,6 +526,21 @@
}
+# HERest (computing log prob on test set (1mix))
+if ($LTST1) {
+ print_time("computing log prob on test set (1mix)");
+
+ $mix = '1mix';
+
+ if (-s $scp{'tst'}) {
+ shell("$HERest{'tst'} -H $rclammf{'cmp'}.$mix -N $rclammf{'dur'}.$mix -M /dev/null -R /dev/null $tiedlst{'cmp'} $tiedlst{'dur'}");
+ }
+ else {
+ print("(skipping since test set is empty)\n\n");
+ }
+}
+
+
# sub routines ============================
sub shell($) {
my($command) = @_;

0 comments on commit ec37b92

Please sign in to comment.