comparison dataset.py @ 136:fa752c55aa09

typo
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Wed, 07 May 2008 16:26:28 -0400
parents 7d8b3d6dd4e9
children 488ad6398b12
comparison
equal deleted inserted replaced
125:7d8b3d6dd4e9 136:fa752c55aa09
772 # and construct corresponding minibatch iterators 772 # and construct corresponding minibatch iterators
773 if fieldnames: 773 if fieldnames:
774 datasets=set([]) 774 datasets=set([])
775 fields_in_dataset=dict([(dataset,[]) for dataset in datasets]) 775 fields_in_dataset=dict([(dataset,[]) for dataset in datasets])
776 for fieldname in fieldnames: 776 for fieldname in fieldnames:
777 dataset=self.datasets[self.fieldnames2dataset[fieldname]] 777 dataset=self.datasets[self.fieldname2dataset[fieldname]]
778 datasets.add(dataset) 778 datasets.add(dataset)
779 fields_in_dataset[dataset].append(fieldname) 779 fields_in_dataset[dataset].append(fieldname)
780 datasets=list(datasets) 780 datasets=list(datasets)
781 iterators=[dataset.minibatches(fields_in_dataset[dataset],minibatch_size,n_batches,offset) 781 iterators=[dataset.minibatches(fields_in_dataset[dataset],minibatch_size,n_batches,offset)
782 for dataset in datasets] 782 for dataset in datasets]