GeezerVison is showing github.com — comment clarification · alabarga/DeepLearningTutorials@34453d2
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: code/DBN.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -154,6 +154,7 @@ def pretraining_functions(self, train_set_x, batch_size): |
154 | 154 | for rbm in self.rbm_layers: |
155 | 155 |
|
156 | 156 | # get the cost and the updates list |
| 157 | + # using CD-k here (persisent=None) for training each RBM. |
157 | 158 | # TODO: change cost function to reconstruction error |
158 | 159 | cost,updates = rbm.get_cost_updates(learning_rate, persistent=None, k =k) |
159 | 160 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: doc/DBN.txt +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -304,6 +304,7 @@ Theano variable to it that has a default value. |
304 | 304 | for rbm in self.rbm_layers: |
305 | 305 |
|
306 | 306 | # get the cost and the updates list |
| 307 | + # using CD-k here (persisent=None) for training each RBM. |
307 | 308 | # TODO: change cost function to reconstruction error |
308 | 309 | cost,updates = rbm.cd(learning_rate, persistent=None, k) |
309 | 310 |
|
|