changeset 797:cc94cdd48d85

fixed a bug in unsupupdate instance method for DAA_inputs_groups
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Mon, 20 Jul 2009 13:07:51 -0400
parents ef749d03d055
children 0b20301ded89
files pylearn/algorithms/sandbox/DAA_inputs_groups.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Mon Jul 20 13:04:18 2009 -0400
+++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Mon Jul 20 13:07:51 2009 -0400
@@ -813,13 +813,13 @@
     def _instance_unsupupdate(self,inst,data,layer='all',typeup = 'local',printcost = False):
         cost = [None]*self.depth
         if typeup is 'totallocal':
-            cost[-1] = inst.totallocalupdate(*data[i])
+            cost[-1] = inst.totallocalupdate(*data)
         else: 
             if typeup is 'total':
                 if layer is 'all':
-                    cost[-1] = inst.totalupdate[-1](*data[i])
+                    cost[-1] = inst.totalupdate[-1](*data)
                 else:
-                    cost[layer] = inst.totalupdate[layer](*data[i])
+                    cost[layer] = inst.totalupdate[layer](*data)
             else:
                 if layer is 'all':
                     for i in range(self.depth):