Mercurial > pylearn
diff dataset.py @ 160:a910141fbe5b
Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Mon, 12 May 2008 16:52:00 -0400 |
parents | 28a988bd19c3 |
children | d7d67651d67c |
line wrap: on
line diff
--- a/dataset.py Mon May 12 16:17:22 2008 -0400 +++ b/dataset.py Mon May 12 16:52:00 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])