diff sandbox/simple_autoassociator/parameters.py @ 411:faffaae0d2f9

Autoassociator now seems to work
author Joseph Turian <turian@iro.umontreal.ca>
date Fri, 11 Jul 2008 15:13:44 -0400
parents 8cc11ac97087
children 4f61201fa9a9
line wrap: on
line diff
--- a/sandbox/simple_autoassociator/parameters.py	Fri Jul 11 01:33:27 2008 -0400
+++ b/sandbox/simple_autoassociator/parameters.py	Fri Jul 11 15:13:44 2008 -0400
@@ -20,8 +20,8 @@
             self.w1 = (numpy.random.rand(input_dimension, hidden_dimension)-0.5)/input_dimension
             self.w2 = (numpy.random.rand(hidden_dimension, input_dimension)-0.5)/hidden_dimension
             self.b1 = numpy.zeros(hidden_dimension)
-            #self.b2 = numpy.zeros(input_dimension)
-            self.b2 = numpy.array([10, 0, 0, -10])
+            self.b2 = numpy.zeros(input_dimension)
+            #self.b2 = numpy.array([10, 0, 0, -10])
         else:
             self.w1 = numpy.zeros((input_dimension, hidden_dimension))
             self.w2 = numpy.zeros((hidden_dimension, input_dimension))