diff options
author | Eva Schlinger <eschling@andrew.cmu.edu> | 2013-06-07 13:39:00 -0400 |
---|---|---|
committer | Eva Schlinger <eschling@andrew.cmu.edu> | 2013-06-07 13:39:00 -0400 |
commit | ea225c8fcfe7f6260589d7d37c06c41c691603bd (patch) | |
tree | a3177909ae85adc7952bcc1b98c5b91c99da6f1e /training/mira | |
parent | ad2d6df5a5be1f6e0ea4e1e7387f996300744f53 (diff) |
mira graph log message change
Diffstat (limited to 'training/mira')
-rwxr-xr-x | training/mira/mira.py | 5 |
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) |