Skip to content

Commit a7a7091

Browse files
author
Razvan Pascanu
committed
bug fixed
1 parent 0c97ea3 commit a7a7091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/rbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def free_energy(self, v_sample):
107107
def propup(self, vis):
108108
''' This function propagates the visible units activation upwards to
109109
the hidden units '''
110-
return T.nnet.sigmoid(T.dot(v, self.W) + self.hbias)
110+
return T.nnet.sigmoid(T.dot(vis, self.W) + self.hbias)
111111

112112
def sample_h_given_v(self, v0_sample):
113113
''' This function infers state of hidden units given visible units '''

0 commit comments

Comments
 (0)