changeset 774:41761210d16e

fix a bug for the weight decay
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Thu, 11 Jun 2009 11:37:24 -0400
parents a25d2229a091
children 164a76c8346f ba055d419bcf
files pylearn/algorithms/sandbox/DAA_inputs_groups.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Wed Jun 10 13:45:52 2009 -0400
+++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Thu Jun 11 11:37:24 2009 -0400
@@ -263,7 +263,7 @@
             container.reconstruction_cost = self.reconstruction_costs(container.rec)
         # TOTAL COST
         if self.regularize: #if stacked don't merge regularization and cost here but in the stackeddaaig module
-            container.cost = container.cost + self.regularization
+            container.cost = container.reconstruction_cost + self.regularization
         else:
             container.cost = container.reconstruction_cost