changeset 803:86b007959ceb

small change (daa input groups)
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Tue, 28 Jul 2009 10:07:01 -0400
parents a18b87ca33e6
children 5e3b7dd6f96a
files pylearn/algorithms/sandbox/DAA_inputs_groups.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Mon Jul 27 19:07:22 2009 -0400
+++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Tue Jul 28 10:07:01 2009 -0400
@@ -857,9 +857,9 @@
     
     def _instance_supupdate(self,inst,data,typeup = 'global',printcost = False):
         if typeup is 'local':
-            cost[-1] = inst.localupdate[-1](*data)
+            cost = inst.localupdate[-1](*data)
         if typeup is 'global':
-            cost[-1] = inst.globalupdate[-1](*data)
+            cost = inst.globalupdate[-1](*data)
         if printcost:
             print cost
         return cost