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 — added DBN results (1.34 test error) · alabarga/DeepLearningTutorials@0797aa1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • code
    • DBN.py
  • doc
    • DBN.txt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/DBN.py‎

Copy file name to clipboardExpand all lines: code/DBN.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ def test_score():
231231
return train_fn, valid_score, test_score
232232

233233

234-
def test_DBN( finetune_lr = 0.1, pretraining_epochs = 10, \
235-
pretrain_lr = 0.1, k = 1, training_epochs = 1000, \
236-
dataset='../data/mnist.pkl.gz', batch_size = 1):
234+
def test_DBN( finetune_lr = 0.1, pretraining_epochs = 100, \
235+
pretrain_lr = 0.01, k = 1, training_epochs = 1000, \
236+
dataset='../data/mnist.pkl.gz', batch_size = 10):
237237
"""
238238
Demonstrates how to train and test a Deep Belief Network.
239239
Collapse file

‎doc/DBN.txt‎

Copy file name to clipboardExpand all lines: doc/DBN.txt
+18-3Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,24 @@ The user can run the code by calling:
472472

473473
python code/DBN.py
474474

475-
476-
Sampling a DBN
477-
++++++++++++++
475+
With the default parameters, the code runs for 100 pre-training epochs with
476+
mini-batches of size 10. This corresponds to performing 500,000 unsupervised
477+
parameter updates. We use an unsupervised learning rate of 0.01, with a
478+
supervised learning rate of 0.1. The DBN itself consists of three
479+
hidden layers with 1000 units per layer. With early-stopping, this configuration
480+
achieved a minimal validation error of 1.27 with corresponding test
481+
error of 1.34 after 46 supervised epochs.
482+
483+
On an Intel(R) Xeon(R) CPU X5560 running at 2.80GHz, using a multi-threaded MKL
484+
library (running on 4 cores), pretraining took 615 minutes with an average of
485+
2.05 mins/(layer * epoch). Fine-tuning took only 101 minutes or approximately
486+
2.20 mins/epoch.
487+
488+
Hyper-parameters were selected by optimizing on the validation error. We tested
489+
unsupervised learning rates in :math:`\{10^{-1}, ..., 10^{-5}\}` and supervised
490+
learning rates in :math:`\{10^{-1}, ..., 10^{-4}\}`. We did not use any form of
491+
regularization besides early-stopping, nor did we optimize over the number of
492+
pretraining updates.
478493

479494

480495
Tips and Tricks

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.