comparison dataset.py @ 62:23bf2c9eb7b3

bugfix
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Fri, 02 May 2008 10:14:01 -0400
parents a8b70a9117ad
children 863da25a60f1
comparison
equal deleted inserted replaced
61:a8b70a9117ad 62:23bf2c9eb7b3
632 assert upper<=self.ds.length 632 assert upper<=self.ds.length
633 minibatch = Example(self.ds._fields.keys(), 633 minibatch = Example(self.ds._fields.keys(),
634 [field[self.next_example:upper] 634 [field[self.next_example:upper]
635 for field in self.ds._fields]) 635 for field in self.ds._fields])
636 self.next_example+=minibatch_size 636 self.next_example+=minibatch_size
637 return DataSetFields(MinibatchDataSet(minibatch),fieldnames) 637 return DataSetFields(MinibatchDataSet(minibatch),*fieldnames)
638 638
639 return Iterator(self) 639 return Iterator(self)
640 640
641 def valuesVStack(self,fieldname,fieldvalues): 641 def valuesVStack(self,fieldname,fieldvalues):
642 return self.values_vstack(fieldname,fieldvalues) 642 return self.values_vstack(fieldname,fieldvalues)