GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — small clean up · jayakumark/DeepLearningTutorials@5482b18

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • code
    • lstm.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/lstm.py‎

Copy file name to clipboardExpand all lines: code/lstm.py
+2-4Lines 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.