pdnn icon indicating copy to clipboard operation
pdnn copied to clipboard

delta_W_rec dimensions

Open eyaler opened this issue 8 years ago • 3 comments

in rnn, shouldn't: self.delta_W_rec = theano.shared(value = numpy.zeros((n_in,n_out), dtype=theano.config.floatX), name='delta_W_rec') be: self.delta_W_rec = theano.shared(value = numpy.zeros((n_out,n_out), dtype=theano.config.floatX), name='delta_W_rec') ?

eyaler avatar Jul 15 '15 20:07 eyaler

The computation is T.dot(input, W), so the dimension is (n_in, n_out)

ghost avatar Jul 15 '15 20:07 ghost

not T.dot(h_tm1, self.W_rec) ?

eyaler avatar Jul 15 '15 21:07 eyaler

"input" symbolically means inputs to a layer, not just the original features. It of course can refer to h_tm1

ghost avatar Jul 15 '15 21:07 ghost