diff sandbox/rbm/model.py @ 401:217c8789284b

Small updates
author Joseph Turian <turian@gmail.com>
date Wed, 09 Jul 2008 00:29:16 -0400
parents 269d5c5a4209
children ffdd2c199f2a
line wrap: on
line diff
--- a/sandbox/rbm/model.py	Tue Jul 08 23:59:57 2008 -0400
+++ b/sandbox/rbm/model.py	Wed Jul 09 00:29:16 2008 -0400
@@ -62,8 +62,7 @@
             q = sigmoid(self.parameters.b + dot(v, self.parameters.w))
             h = sample(q)
             p = sigmoid(self.parameters.c + dot(h, self.parameters.w.T))
-            v = sample(p)
-        return v
+        return p
 
     def update(self, instances):
         """