comparison datasets/ftfile.py @ 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 1faae5079522
comparison
equal deleted inserted replaced
180:76bc047df5ee 181:f0f47b045cbf
200 self._valid = FTData(valid_data, valid_lbl) 200 self._valid = FTData(valid_data, valid_lbl)
201 self._test = FTData(test_data, test_lbl) 201 self._test = FTData(test_data, test_lbl)
202 202
203 def _return_it(self, batchsize, bufsize, ftdata): 203 def _return_it(self, batchsize, bufsize, ftdata):
204 return izip(DataIterator(ftdata.open_inputs(), batchsize, bufsize), 204 return izip(DataIterator(ftdata.open_inputs(), batchsize, bufsize),
205 imap(lambda b: theano.tensor.cast(b, 'int32'), 205 DataIterator(ftdata.open_outputs(), batchsize, bufsize))
206 DataIterator(ftdata.open_outputs(), batchsize, bufsize)))