changeset 766:d7d8877e03f8

Better declaration of totallocal_update method in StackedDAAig
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Fri, 05 Jun 2009 15:27:21 -0400
parents c95a56f055aa
children 1e97e7c7f11f
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	Fri Jun 05 15:11:53 2009 -0400
+++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Fri Jun 05 15:27:21 2009 -0400
@@ -613,7 +613,7 @@
             totallocal_grads.update(dict((j, j - self.unsup_lr * g) for j,g in
                     zip(self.daaig[k].params,self.localgradients[k])))
         totallocal_grads.update(dict((j, j - self.sup_lr * g) for j,g in zip(self.daaig[-1].params,self.localgradients[-1])))
-        self.totallocalupdate = theano.Method(self.inputs[-1],sum(self.localcost[:]),totallocal_grads)
+        self.totallocalupdate = theano.Method(self.inputs[-1],self.localcost,totallocal_grads)
         
         self.classify = theano.Method(self.inputs[-2],self.daaig[-1].argmax_standalone)
         self.NLL = theano.Method(self.inputs[-1],self.daaig[-1]._xent)