changeset 813:928f12f9c6fe

again bug fixes for rescalwsaturation DAA inputs groups
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Thu, 13 Aug 2009 12:11:51 -0400
parents 6f6724dafcf7
children 90b50bd79bc0
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	Thu Aug 13 11:42:53 2009 -0400
+++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Thu Aug 13 12:11:51 2009 -0400
@@ -840,8 +840,8 @@
                 inst.daaig[i+1].benc = inst.daaig[i+1].benc/sat[i+1]*max(sat[:i+1])
                 sat[i+1] = max(sat[:i+1])
         if sat[-1]>max(sat[:-1]):
-            inst.daaig[-1].w = inst.daaig[i+1].w/sat[-1]*max(sat[:-1])
-            inst.daaig[-1].b = inst.daaig[i+1].b/sat[-1]*max(sat[:-1])
+            inst.daaig[-1].w = inst.daaig[-1].w/sat[-1]*max(sat[:-1])
+            inst.daaig[-1].b = inst.daaig[-1].b/sat[-1]*max(sat[:-1])
 
     #-----------------------------------------------------------------------