# HG changeset patch # User Joseph Turian # Date 1215551303 14400 # Node ID dace8b9743af1eac1501db1d0784e348c73bd980 # Parent a474341861faa617d5ac7be157f9d205263f3835 __str__ method diff -r a474341861fa -r dace8b9743af simple_autoassociator.py/parameters.py --- a/simple_autoassociator.py/parameters.py Tue Jul 08 02:27:00 2008 -0400 +++ b/simple_autoassociator.py/parameters.py Tue Jul 08 17:08:23 2008 -0400 @@ -26,3 +26,11 @@ self.w2 = numpy.zeros((hidden_dimension, input_dimension)) self.b1 = numpy.zeros(hidden_dimension) self.b2 = numpy.zeros(input_dimension) + + def __str__(self): + s = "" + s += "w1: %s\n" % self.w1 + s += "b1: %s\n" % self.b1 + s += "w2: %s\n" % self.w2 + s += "b2: %s\n" % self.b2 + return s