# HG changeset patch # User Frederic Bastien # Date 1210621890 14400 # Node ID 9abd19af822ec4dbff90e5c6c21e18d0369dfd5d # Parent feec9039b941f6f821a380e956e85f02c4e46601 bugfix diff -r feec9039b941 -r 9abd19af822e dataset.py --- 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])