0
我想了解下面一段theano代碼。theano.function中更新的功能
self.sgd_step = theano.function(
[x, y, learning_rate, theano.Param(decay, default=0.9)],
[],
updates=[(E, E - learning_rate * dE/T.sqrt(mE + 1e-6)),
(U, U - learning_rate * dU/T.sqrt(mU + 1e-6)),
(W, W - learning_rate * dW/T.sqrt(mW + 1e-6)),
(V, V - learning_rate * dV/T.sqrt(mV + 1e-6)),
(b, b - learning_rate * db/T.sqrt(mb + 1e-6)),
(c, c - learning_rate * dc/T.sqrt(mc + 1e-6)),
(self.mE, mE),
(self.mU, mU),
(self.mW, mW),
(self.mV, mV),
(self.mb, mb),
(self.mc, mc)
])
有人可以告訴我,上面的代碼的作者是試圖做什麼?有一個值,[x, y, learning_rate, theano.Param(decay, default=0.9)]
試圖更新,價值將會更新[]
? updates
在這裏有什麼功能?
如果我能夠知道上述代碼中發生了什麼,我將不勝感激。