changeset 147:625d2b21ee48

Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Mon, 12 May 2008 15:50:34 -0400
parents 933db7ece663 (current diff) 8173e196e291 (diff)
children 39bb21348fdf
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dataset.py	Mon May 12 15:35:18 2008 -0400
+++ b/dataset.py	Mon May 12 15:50:34 2008 -0400
@@ -1050,7 +1050,8 @@
           # into memory at once, which may be too much
           # the work could possibly be done by minibatches
           # that are as large as possible but no more than what memory allows.
-          self.cached_examples = zip(*source_dataset.minibatches(minibatch_size=len(source_dataset)).__iter__().next())
+          fields_values = source_dataset.minibatches(minibatch_size=len(source_dataset)).__iter__().next()
+          self.cached_examples = zip(*fields_values)
       else:
           self.cached_examples = []