Skip to content

Commit 5482b18

Browse files
committed
small clean up
1 parent 2da9122 commit 5482b18

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

code/lstm.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,9 @@ def train_lstm(
559559

560560
print 'Train ', train_err, 'Valid ', valid_err, 'Test ', test_err
561561

562-
params = copy.copy(best_p)
563-
numpy.savez(saveto, zipped_params=best_p, train_err=train_err,
562+
numpy.savez(saveto, train_err=train_err,
564563
valid_err=valid_err, test_err=test_err,
565-
history_errs=history_errs, **params)
566-
564+
history_errs=history_errs, **best_p)
567565
print 'The code run for %d epochs, with %f sec/epochs' % (
568566
(eidx + 1), (end_time - start_time) / (1. * (eidx + 1)))
569567
print >> sys.stderr, ('Training took %.1fs' %

0 commit comments

Comments
 (0)