changeset 181:f0f47b045cbf

Remove a stray cast in the FTDataSet code and export the ocr dataset.
author Arnaud Bergeron <abergeron@gmail.com>
date Sat, 27 Feb 2010 17:10:37 -0500
parents 76bc047df5ee
children 2b6a28e4cadc
files datasets/defs.py datasets/ftfile.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/datasets/defs.py	Sat Feb 27 16:50:16 2010 -0500
+++ b/datasets/defs.py	Sat Feb 27 17:10:37 2010 -0500
@@ -1,4 +1,4 @@
-__all__ = ['nist_digits', 'nist_lower', 'nist_upper', 'nist_all']
+__all__ = ['nist_digits', 'nist_lower', 'nist_upper', 'nist_all', 'ocr']
 
 from ftfile import FTDataSet
 import theano
--- a/datasets/ftfile.py	Sat Feb 27 16:50:16 2010 -0500
+++ b/datasets/ftfile.py	Sat Feb 27 17:10:37 2010 -0500
@@ -202,5 +202,4 @@
 
     def _return_it(self, batchsize, bufsize, ftdata):
         return izip(DataIterator(ftdata.open_inputs(), batchsize, bufsize),
-                   imap(lambda b: theano.tensor.cast(b, 'int32'), 
-                        DataIterator(ftdata.open_outputs(), batchsize, bufsize)))
+                    DataIterator(ftdata.open_outputs(), batchsize, bufsize))