# HG changeset patch # User Xavier Glorot # Date 1250178173 14400 # Node ID 6f6724dafcf7d564b2781ca59c8d84f72d8d7036 # Parent ecae21a7262ef03d0645e1c8cd4b4ae508c6f758 fix bug for rescalwsaturation instance method for DAA inputs groups diff -r ecae21a7262e -r 6f6724dafcf7 pylearn/algorithms/sandbox/DAA_inputs_groups.py --- a/pylearn/algorithms/sandbox/DAA_inputs_groups.py Thu Aug 13 11:39:27 2009 -0400 +++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py Thu Aug 13 11:42:53 2009 -0400 @@ -832,7 +832,7 @@ def _instance_rescalwsaturation(self,inst,inputs): sat = [None]*(self.depth+1) for i in range(self.depth+1): - sat[i] = inst.hidsaturation(i,inputs[min(i,self.depth)]) + sat[i] = inst.hidsaturation(i,inputs[min(i,self.depth-1)]) for i in range(self.depth-1): if sat[i+1] > max(sat[:i+1]):