diff dataset.py @ 128:ee5507af2c60

minor edits
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Wed, 07 May 2008 20:51:24 -0400
parents 7d8b3d6dd4e9
children f6505ec32dc3
line wrap: on
line diff
--- a/dataset.py	Wed May 07 16:58:06 2008 -0400
+++ b/dataset.py	Wed May 07 20:51:24 2008 -0400
@@ -978,12 +978,12 @@
                     key[i]=self.fields_columns[key[i]]
             return MinibatchDataSet(Example(fieldnames,
                                             #we must separate differently for list as numpy
-                                            # don't support self.data[[i1,...],[i2,...]]
+                                            # doesn't support self.data[[i1,...],[i2,...]]
                                             # when their is more then two i1 and i2
                                             [self.data[key,:][:,self.fields_columns[f]]
                                              if isinstance(self.fields_columns[f],list) else
-                                             self.data[key,self.fields_columns[f]]
-                                             for f in fieldnames]),
+                                             self.data[key,self.fields_columns[f]] for f in fieldnames]),
+
                                     self.valuesVStack,self.valuesHStack)
 
         # else check for a fieldname