changeset 150:9abd19af822e

bugfix
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Mon, 12 May 2008 15:51:30 -0400
parents feec9039b941
children 39bb21348fdf
files dataset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dataset.py	Mon May 12 15:50:49 2008 -0400
+++ b/dataset.py	Mon May 12 15:51:30 2008 -0400
@@ -1076,7 +1076,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])