# HG changeset patch # User James Bergstra # Date 1238709471 14400 # Node ID 790c5e44906c26e0125fdc1cf6beb0473a3df7a8 # Parent 273d782b5a204b8a0ea7046e14b0e8e859ece0ac small correction to exponential_mean diff -r 273d782b5a20 -r 790c5e44906c pylearn/algorithms/exponential_mean.py --- a/pylearn/algorithms/exponential_mean.py Thu Apr 02 15:08:42 2009 -0400 +++ b/pylearn/algorithms/exponential_mean.py Thu Apr 02 17:57:51 2009 -0400 @@ -49,7 +49,9 @@ raise NotImplementedError() self.old_curval = (x_type()) - self.denom = (theano.tensor.lscalar()) + # TODO: making this an lscalar caused different optimizations, followed by integer + # division somewhere were i wanted float division.... and the wrong answer. + self.denom = (theano.tensor.dscalar()) alpha = 1.0 / self.denom self.curval = (1.0 - alpha) * self.old_curval + alpha * x