We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c97ea3 commit a7a7091Copy full SHA for a7a7091
code/rbm.py
@@ -107,7 +107,7 @@ def free_energy(self, v_sample):
107
def propup(self, vis):
108
''' This function propagates the visible units activation upwards to
109
the hidden units '''
110
- return T.nnet.sigmoid(T.dot(v, self.W) + self.hbias)
+ return T.nnet.sigmoid(T.dot(vis, self.W) + self.hbias)
111
112
def sample_h_given_v(self, v0_sample):
113
''' This function infers state of hidden units given visible units '''
0 commit comments