changeset 807:96d5114b7a8e

bug fix in unsupupdate instance method DAA input groups
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Mon, 10 Aug 2009 19:12:11 -0400
parents a48ec81bec9d
children 316817114b15
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	Mon Aug 10 14:58:40 2009 -0400
+++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Mon Aug 10 19:12:11 2009 -0400
@@ -870,9 +870,9 @@
                             cost[i] = inst.globalupdate[i](*data[i])
                 else:
                     if typeup == 'local':
-                        cost[layer] = inst.localupdate[i](*data)
+                        cost[layer] = inst.localupdate[layer](*data)
                     if typeup == 'global':
-                        cost[layer] = inst.globalupdate[i](*data)
+                        cost[layer] = inst.globalupdate[layer](*data)
         if printcost:
             print cost
         return cost