comparison dataset.py @ 60:9165d86855ab

bugfix
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Thu, 01 May 2008 16:26:34 -0400
parents 1aabd2e2bb5f
children a8b70a9117ad
comparison
equal deleted inserted replaced
59:ac9aff8d5743 60:9165d86855ab
130 def __init__(self,description=None,fieldtypes=None): 130 def __init__(self,description=None,fieldtypes=None):
131 if description is None: 131 if description is None:
132 # by default return "<DataSetType>(<SuperClass1>,<SuperClass2>,...)" 132 # by default return "<DataSetType>(<SuperClass1>,<SuperClass2>,...)"
133 description = type(self).__name__ + " ( " + join([x.__name__ for x in type(self).__bases__]) + " )" 133 description = type(self).__name__ + " ( " + join([x.__name__ for x in type(self).__bases__]) + " )"
134 self.description=description 134 self.description=description
135 self.fieldtypes=field_types 135 self.fieldtypes=fieldtypes
136 136
137 class MinibatchToSingleExampleIterator(object): 137 class MinibatchToSingleExampleIterator(object):
138 """ 138 """
139 Converts the result of minibatch iterator with minibatch_size==1 into 139 Converts the result of minibatch iterator with minibatch_size==1 into
140 single-example values in the result. Therefore the result of 140 single-example values in the result. Therefore the result of