diff dataset.py @ 151:39bb21348fdf

Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Mon, 12 May 2008 15:51:43 -0400
parents 8173e196e291 9abd19af822e
children 3f627e844cba 71107b0ac860
line wrap: on
line diff
--- a/dataset.py	Mon May 12 15:50:34 2008 -0400
+++ b/dataset.py	Mon May 12 15:51:43 2008 -0400
@@ -1077,7 +1077,7 @@
                   for example in self.dataset.source_dataset[cache_len:upper]:
                       self.dataset.cached_examples.append(example)
               all_fields_minibatch = Example(self.dataset.fieldNames(),
-                                             self.dataset.cached_examples[self.current:self.current+minibatch_size])
+                                             *self.dataset.cached_examples[self.current:self.current+minibatch_size])
               if self.dataset.fieldNames()==fieldnames:
                   return all_fields_minibatch
               return Example(fieldnames,[all_fields_minibatch[name] for name in fieldnames])