Mercurial > pylearn
comparison dataset.py @ 141:f5f235bebee4
...
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Mon, 12 May 2008 14:13:39 -0400 |
parents | 488ad6398b12 |
children | ad144fa72bf5 |
comparison
equal
deleted
inserted
replaced
140:488ad6398b12 | 141:f5f235bebee4 |
---|---|
767 # concatenate all the fields of the minibatches | 767 # concatenate all the fields of the minibatches |
768 l=LookupList() | 768 l=LookupList() |
769 for iter in self.iterators: | 769 for iter in self.iterators: |
770 l.append_lookuplist(iter.next()) | 770 l.append_lookuplist(iter.next()) |
771 return l | 771 return l |
772 return reduce(LookupList.__add__,[iterator.next() for iterator in self.iterators]) | |
773 | 772 |
774 assert self.hasFields(*fieldnames) | 773 assert self.hasFields(*fieldnames) |
775 # find out which underlying datasets are necessary to service the required fields | 774 # find out which underlying datasets are necessary to service the required fields |
776 # and construct corresponding minibatch iterators | 775 # and construct corresponding minibatch iterators |
777 if fieldnames and fieldnames!=self.fieldNames(): | 776 if fieldnames and fieldnames!=self.fieldNames(): |