GeezerVison is showing github.com — Use the In object as Param is deprecated · alabarga/DeepLearningTutorials@b701733
File treeExpand 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 +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -174,7 +174,7 @@ def pretraining_functions(self, train_set_x, batch_size, k): | 174 | 174 |
| 175 | 175 | # compile the theano function | 176 | 176 | fn = theano.function( | 177 | | - inputs=[index, theano.Param(learning_rate, default=0.1)], | | 177 | + inputs=[index, theano.In(learning_rate, value=0.1)], | 178 | 178 | outputs=cost, | 179 | 179 | updates=updates, | 180 | 180 | givens={ | |
Collapse file Copy file name to clipboardExpand all lines: code/SdA.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -214,8 +214,8 @@ def pretraining_functions(self, train_set_x, batch_size): | 214 | 214 | fn = theano.function( | 215 | 215 | inputs=[ | 216 | 216 | index, | 217 | | - theano.Param(corruption_level, default=0.2), | 218 | | - theano.Param(learning_rate, default=0.1) | | 217 | + theano.In(corruption_level, value=0.2), | | 218 | + theano.In(learning_rate, value=0.1) | 219 | 219 | ], | 220 | 220 | outputs=cost, | 221 | 221 | updates=updates, | |
|