Mercurial > pylearn
changeset 151:39bb21348fdf
Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Mon, 12 May 2008 15:51:43 -0400 |
parents | 625d2b21ee48 (diff) 9abd19af822e (current diff) |
children | 3f627e844cba 71107b0ac860 ae5651a3696b |
files | dataset.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dataset.py Mon May 12 15:51:30 2008 -0400 +++ b/dataset.py Mon May 12 15:51:43 2008 -0400 @@ -1050,7 +1050,8 @@ # into memory at once, which may be too much # the work could possibly be done by minibatches # that are as large as possible but no more than what memory allows. - self.cached_examples = zip(*source_dataset.minibatches(minibatch_size=len(source_dataset)).__iter__().next()) + fields_values = source_dataset.minibatches(minibatch_size=len(source_dataset)).__iter__().next() + self.cached_examples = zip(*fields_values) else: self.cached_examples = []