summaryrefslogtreecommitdiff
path: root/training/mira
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
commitb65255117783a902b58d212e313279e7ab536b93 (patch)
tree399366ef95b8315c436b2eac65d7f5284436dc05 /training/mira
parent0bedc0ef857b06e5913e38e75c096d42d1b6ad6f (diff)
mira graph log message change
Diffstat (limited to 'training/mira')
-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)