# HG changeset patch # User Joseph Turian # Date 1225172252 14400 # Node ID e8c37244b54febfcb50c7977d18487e268957ccd # Parent 3daabc7f94ff786af5460f00212fbc231b0ba1b5 Small bugfix in regularization diff -r 3daabc7f94ff -r e8c37244b54f algorithms/daa.py --- a/algorithms/daa.py Tue Oct 28 01:33:27 2008 -0400 +++ b/algorithms/daa.py Tue Oct 28 01:37:32 2008 -0400 @@ -138,7 +138,7 @@ if self.tie_weights: return self.l2_coef * T.sum(self.w1 * self.w1) else: - return self.l2_coef * T.sum(self.w1 * self.w1) + T.sum(self.w2 * self.w2) + return self.l2_coef * (T.sum(self.w1 * self.w1) + T.sum(self.w2 * self.w2)) def _instance_initialize(self, obj, input_size = None, hidden_size = None, seed = None, **init): init.setdefault('noise_level', 0)