changeset 839:2418dad01307

fixed typo in MNIST
author James Bergstra <bergstrj@iro.umontreal.ca>
date Thu, 22 Oct 2009 18:51:45 -0400
parents 4f7e0edee7d0
children 7ccce98da2b6
files pylearn/dataset_ops/MNIST.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/dataset_ops/MNIST.py	Thu Oct 22 18:51:20 2009 -0400
+++ b/pylearn/dataset_ops/MNIST.py	Thu Oct 22 18:51:45 2009 -0400
@@ -102,7 +102,7 @@
             x = x.reshape((28,28))
     elif x.ndim == 2:
         if not rasterized:
-            x = x.reshape(x.shape[0], (28,28))
+            x = x.reshape((x.shape[0], 28,28))
     else:
         assert False, 'what happened?'