# HG changeset patch # User Frederic Bastien # Date 1210625514 14400 # Node ID 28a988bd19c34e4e8f93e4437e9a909ebaa1eecc # Parent 90104343c66564b331c6d4206054b66e70443938 bugfix: make the iterator advance diff -r 90104343c665 -r 28a988bd19c3 dataset.py --- a/dataset.py Mon May 12 16:24:59 2008 -0400 +++ b/dataset.py Mon May 12 16:51:54 2008 -0400 @@ -1079,6 +1079,7 @@ self.dataset.cached_examples.append(example) all_fields_minibatch = Example(self.dataset.fieldNames(), zip(*self.dataset.cached_examples[self.current:self.current+minibatch_size])) + self.current+=1 if self.dataset.fieldNames()==fieldnames: return all_fields_minibatch return Example(fieldnames,[all_fields_minibatch[name] for name in fieldnames])