summaryrefslogtreecommitdiff
path: root/training/mira
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-01-28 02:36:03 -0500
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-01-28 02:36:03 -0500
commit19de646f60d4fb52ddd26d25e06f50f8717fd988 (patch)
treea95b521a8db2897ef4f7252ee882b8b8d2b6a47b /training/mira
parent80d4acfb24ed0d72e22caafcc17fa4def686bd78 (diff)
what did i do
Diffstat (limited to 'training/mira')
-rwxr-xr-xtraining/mira/mira.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/mira/mira.py b/training/mira/mira.py
index d5a1d9f8..c84a8cff 100755
--- a/training/mira/mira.py
+++ b/training/mira/mira.py
@@ -443,7 +443,7 @@ def optimize(args, script_dir, dev_size):
new_weights_file = '{}/weights.{}'.format(args.output_dir, i+1)
last_weights_file = '{}/weights.{}'.format(args.output_dir, i)
i += 1
- weight_files = args.output_dir+'/weights.pass*/weights.mira-pass*[0-9].gz'
+ weight_files = weightdir+'/weights.mira-pass*.*[0-9].gz'
average_weights(new_weights_file, weight_files)
logging.info('BEST ITERATION: {} (SCORE={})'.format(