# HG changeset patch # User Xavier Glorot # Date 1244230041 14400 # Node ID d7d8877e03f8c226d7b92a0ccbc57588bc693003 # Parent c95a56f055aa88678f15985b0ed36af22ec9f2ac Better declaration of totallocal_update method in StackedDAAig diff -r c95a56f055aa -r d7d8877e03f8 pylearn/algorithms/sandbox/DAA_inputs_groups.py --- 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)