comparison simple_autoassociator.py/parameters.py @ 387:dace8b9743af

__str__ method
author Joseph Turian <turian@gmail.com>
date Tue, 08 Jul 2008 17:08:23 -0400
parents a474341861fa
children
comparison
equal deleted inserted replaced
386:a474341861fa 387:dace8b9743af
24 else: 24 else:
25 self.w1 = numpy.zeros((input_dimension, hidden_dimension)) 25 self.w1 = numpy.zeros((input_dimension, hidden_dimension))
26 self.w2 = numpy.zeros((hidden_dimension, input_dimension)) 26 self.w2 = numpy.zeros((hidden_dimension, input_dimension))
27 self.b1 = numpy.zeros(hidden_dimension) 27 self.b1 = numpy.zeros(hidden_dimension)
28 self.b2 = numpy.zeros(input_dimension) 28 self.b2 = numpy.zeros(input_dimension)
29
30 def __str__(self):
31 s = ""
32 s += "w1: %s\n" % self.w1
33 s += "b1: %s\n" % self.b1
34 s += "w2: %s\n" % self.w2
35 s += "b2: %s\n" % self.b2
36 return s