diff options
Diffstat (limited to 'training')
-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) |