# HG changeset patch # User Yoshua Bengio # Date 1210621834 14400 # Node ID 625d2b21ee489e01ba00fd88e37d104fd3362d4e # Parent 933db7ece663496fde755eeb596fca907a7de76e# Parent 8173e196e2914f99e372846d0db9253d88f53a85 Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn diff -r 933db7ece663 -r 625d2b21ee48 dataset.py --- a/dataset.py Mon May 12 15:35:18 2008 -0400 +++ b/dataset.py Mon May 12 15:50:34 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 = []