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 an higher valid proportion, to make it move. · jayakumark/DeepLearningTutorials@43adeff

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
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def train_lstm(
405405
load_data, prepare_data = get_dataset(dataset)
406406

407407
print 'Loading data'
408-
train, valid, test = load_data(n_words=n_words, valid_portion=0.01,
408+
train, valid, test = load_data(n_words=n_words, valid_portion=0.05,
409409
maxlen=maxlen)
410410

411411
ydim = numpy.max(train[1])+1
@@ -452,6 +452,9 @@ def train_lstm(
452452
kf_test = get_minibatches_idx(len(test[0]), valid_batch_size,
453453
shuffle=True)
454454

455+
print "%d train examples" % len(train[0])
456+
print "%d valid examples" % len(valid[0])
457+
print "%d test examples" % len(test[0])
455458
history_errs = []
456459
best_p = None
457460
bad_count = 0

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.