summaryrefslogtreecommitdiff
path: root/training
diff options
context:
space:
mode:
authorEva Schlinger <eschling@andrew.cmu.edu>2013-06-07 13:39:00 -0400
committerEva Schlinger <eschling@andrew.cmu.edu>2013-06-07 13:39:00 -0400
commitea225c8fcfe7f6260589d7d37c06c41c691603bd (patch)
treea3177909ae85adc7952bcc1b98c5b91c99da6f1e /training
parentad2d6df5a5be1f6e0ea4e1e7387f996300744f53 (diff)
mira graph log message change
Diffstat (limited to 'training')
-rwxr-xr-xtraining/mira/mira.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/training/mira/mira.py b/training/mira/mira.py
index 0ad65da0..89822d41 100755
--- a/training/mira/mira.py
+++ b/training/mira/mira.py
@@ -203,8 +203,9 @@ def main():
write_report(graph_file, dev_results, dev_bleu, test_results, test_bleu, args)
- logging.info('A graph of the best/hope/fear scores over the iterations '
- 'has been saved to {}\n'.format(graph_file))
+ if graph_file:
+ logging.info('A graph of the best/hope/fear scores over the iterations '
+ 'has been saved to {}\n'.format(graph_file))
print 'final weights:\n{}\n'.format(args.weights)