From ea225c8fcfe7f6260589d7d37c06c41c691603bd Mon Sep 17 00:00:00 2001 From: Eva Schlinger Date: Fri, 7 Jun 2013 13:39:00 -0400 Subject: mira graph log message change --- training/mira/mira.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'training') 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) -- cgit v1.2.3