# HG changeset patch # User Xavier Glorot # Date 1248109671 14400 # Node ID cc94cdd48d85df0931447ea9fa42c6e4a83cb564 # Parent ef749d03d0551da9eda80958c60cef212a60fa37 fixed a bug in unsupupdate instance method for DAA_inputs_groups diff -r ef749d03d055 -r cc94cdd48d85 pylearn/algorithms/sandbox/DAA_inputs_groups.py --- 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):