changeset 812:6f6724dafcf7

fix bug for rescalwsaturation instance method for DAA inputs groups
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Thu, 13 Aug 2009 11:42:53 -0400
parents ecae21a7262e
children 928f12f9c6fe
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	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]):