changeset 678:790c5e44906c

small correction to exponential_mean
author James Bergstra <bergstrj@iro.umontreal.ca>
date Thu, 02 Apr 2009 17:57:51 -0400
parents 273d782b5a20
children 05a3800389e4
files pylearn/algorithms/exponential_mean.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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