Mercurial > pylearn
comparison sandbox/rbm/main.py @ 402:ffdd2c199f2a
* Added momentum.
* Added deterministic_reconstruction_error.
author | Joseph Turian <turian@gmail.com> |
---|---|
date | Wed, 09 Jul 2008 15:27:12 -0400 |
parents | 269d5c5a4209 |
children | c2e6a8fcc35e |
comparison
equal
deleted
inserted
replaced
401:217c8789284b | 402:ffdd2c199f2a |
---|---|
6 | 6 |
7 | 7 |
8 import numpy | 8 import numpy |
9 | 9 |
10 nonzero_instances = [] | 10 nonzero_instances = [] |
11 nonzero_instances.append({0: 1, 1: 1}) | 11 #nonzero_instances.append({0: 1, 1: 1}) |
12 nonzero_instances.append({0: 1, 2: 1}) | 12 #nonzero_instances.append({0: 1, 2: 1}) |
13 | 13 |
14 #nonzero_instances.append({1: 0.1, 5: 0.5, 9: 1}) | 14 nonzero_instances.append({1: 0.1, 5: 0.5, 9: 1}) |
15 #nonzero_instances.append({2: 0.3, 5: 0.5, 8: 0.8}) | 15 nonzero_instances.append({2: 0.3, 5: 0.5, 8: 0.8}) |
16 ##nonzero_instances.append({1: 0.2, 2: 0.3, 5: 0.5}) | 16 nonzero_instances.append({1: 0.2, 2: 0.3, 5: 0.5}) |
17 | 17 |
18 import model | 18 import model |
19 model = model.Model() | 19 model = model.Model() |
20 | 20 |
21 for i in xrange(100000): | 21 for i in xrange(100000): |