# HG changeset patch # User Frederic Bastien # Date 1210628406 14400 # Node ID d7d67651d67c6ebd56031359e9f729f17be48918 # Parent 45427d4d64b3028795889e28de8a5bbb5e7b19d3 bugfix, we should advence by the minibatch size. diff -r 45427d4d64b3 -r d7d67651d67c dataset.py --- a/dataset.py Mon May 12 17:37:36 2008 -0400 +++ b/dataset.py Mon May 12 17:40:06 2008 -0400 @@ -1079,7 +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 + self.current+=minibatch_size if self.dataset.fieldNames()==fieldnames: return all_fields_minibatch return Example(fieldnames,[all_fields_minibatch[name] for name in fieldnames])