MCPcopy Index your code
hub / github.com/lisa-lab/DeepLearningTutorials / propdown

Method propdown

code/rbm.py:165–177  ·  view source on GitHub ↗

This function propagates the hidden units activation downwards to the visible units Note that we return also the pre_sigmoid_activation of the layer. As it will turn out later, due to how Theano deals with optimizations, this symbolic variable will be needed to write

(self, hid)

Source from the content-addressed store, hash-verified

163 return [pre_sigmoid_h1, h1_mean, h1_sample]
164
165 def propdown(self, hid):
166 '''This function propagates the hidden units activation downwards to
167 the visible units
168
169 Note that we return also the pre_sigmoid_activation of the
170 layer. As it will turn out later, due to how Theano deals with
171 optimizations, this symbolic variable will be needed to write
172 down a more stable computational graph (see details in the
173 reconstruction cost function)
174
175 '''
176 pre_sigmoid_activation = T.dot(hid, self.W.T) + self.vbias
177 return [pre_sigmoid_activation, T.nnet.sigmoid(pre_sigmoid_activation)]
178
179 def sample_v_given_h(self, h0_sample):
180 ''' This function infers state of visible units given hidden units '''

Callers 1

sample_v_given_hMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected