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 — use adadelta, sgd do not work. · jayakumark/DeepLearningTutorials@6b7b7a6

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-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,14 @@ def pred_error(f_pred, prepare_data, data, iterator, verbose=False):
375375

376376

377377
def test_lstm(
378-
dim_proj=128, # TODO: What is this
378+
dim_proj=128, # word embeding dimension and LSTM number of hidden units.
379379
patience=10, # number of epoch to wait before early stop if no progress
380380
max_epochs=5000, # The maximum number of epoch to run
381381
dispFreq=10, # display to stdout the training progress every N updates
382382
decay_c=0., # weight decay for the classifier applied to the U weights.
383383
lrate=0.0001, # learning rate for sgd (not used for adadelta and rmsprop)
384384
n_words=10000, # vocabulary size
385-
optimizer=sgd, # sgd, adadelta and rmsprop available
385+
optimizer=adadelta, # sgd, adadelta and rmsprop available, sgd very hard to use, not recommanded (probably need momentum and decay learning rate).
386386
encoder='lstm', # TODO: can be removed must be lstm.
387387
saveto='lstm_model.npz', # The best model will be saved there
388388
validFreq=10000, # after 1000

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.