comparison algorithms/daa.py @ 482:b15dad843c8c

bugfix
author Olivier Breuleux <breuleuo@iro.umontreal.ca>
date Tue, 28 Oct 2008 00:23:13 -0400
parents 8fcd0f3d9a17
children e8c37244b54f
comparison
equal deleted inserted replaced
476:8fcd0f3d9a17 482:b15dad843c8c
108 if not self.tie_weights: 108 if not self.tie_weights:
109 obj.w2 = R.uniform(size = list(reversed(sz)), low = -inf, high = inf) 109 obj.w2 = R.uniform(size = list(reversed(sz)), low = -inf, high = inf)
110 obj.b1 = N.zeros(hidden_size) 110 obj.b1 = N.zeros(hidden_size)
111 obj.b2 = N.zeros(input_size) 111 obj.b2 = N.zeros(input_size)
112 if seed is not None: 112 if seed is not None:
113 self.seed(seed) 113 obj.seed(seed)
114 obj.__hide__ = ['params'] 114 obj.__hide__ = ['params']
115 115
116 def build_regularization(self): 116 def build_regularization(self):
117 return T.zero() # no regularization! 117 return T.zero() # no regularization!
118 118