File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -219,9 +219,31 @@ class dA(object):
219219
220220 return (cost, updates)
221221```
222+ 我们现在可以定义一个函数来实现重复的更新参数W,b,b‘,直到这个重构消耗大约是最小的。
222223
223-
224-
224+ ``` Python
225+ da = dA(
226+ numpy_rng = rng,
227+ theano_rng = theano_rng,
228+ input = x,
229+ n_visible = 28 * 28 ,
230+ n_hidden = 500
231+ )
232+
233+ cost, updates = da.get_cost_updates(
234+ corruption_level = 0 .,
235+ learning_rate = learning_rate
236+ )
237+
238+ train_da = theano.function(
239+ [index],
240+ cost,
241+ updates = updates,
242+ givens = {
243+ x: train_set_x[index * batch_size: (index + 1 ) * batch_size]
244+ }
245+ )
246+ ```
225247
226248
227249
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ This is a `Chinese tutorial` which is translated from [DeepLearning 0.1 document
1717* [ 使用逻辑回归进行MNIST分类(Classifying MNIST digits using Logistic Regression)] ( https://github.com/Syndrome777/DeepLearningTutorial/blob/master/2_Classifying_MNIST_using_LR_逻辑回归进行MNIST分类.md )
1818* [ 多层感知机(Multilayer Perceptron)] ( https://github.com/Syndrome777/DeepLearningTutorial/blob/master/3_Multilayer_Perceptron_多层感知机.md )
1919* [ 卷积神经网络(Convolutional Neural Networks(LeNet))] ( https://github.com/Syndrome777/DeepLearningTutorial/blob/master/4_Convoltional_Neural_Networks_LeNet_卷积神经网络.md )
20- * Denoising Autoencoders(dA)
20+ * [ 降噪自动编码机器( Denoising Autoencoders(dA)) ] ( https://github.com/Syndrome777/DeepLearningTutorial/blob/master/5_Denoising_Autoencoders_降噪自动编码.md )
2121* Stcaked Denoising Autoencoders(SdA)
2222* Restricted Boltzmann Machines(RBM)
2323* Deep Belif Networks
You can’t perform that action at this time.
0 commit comments