diff dataset.py @ 74:b4159cbdc06b

Fixed errors raised by test_dataset
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Sat, 03 May 2008 14:41:02 -0400
parents 69f97aad3faf
children 1e2bb5bad636
line wrap: on
line diff
--- a/dataset.py	Sat May 03 14:29:56 2008 -0400
+++ b/dataset.py	Sat May 03 14:41:02 2008 -0400
@@ -229,7 +229,7 @@
                 self.next_row -= self.L
             return DataSetFields(MinibatchDataSet(minibatch,self.dataset.valuesVStack,
                                                   self.dataset.valuesHStack),
-                                 minibatch.keys()))
+                                 minibatch.keys())
 
 
     minibatches_fieldnames = None
@@ -348,7 +348,7 @@
         """
         Return a DataSetFields object associated with this dataset.
         """
-        return DataSetFields(self,*fieldnames)
+        return DataSetFields(self,fieldnames)
 
     def __getitem__(self,i):
         """
@@ -548,7 +548,7 @@
     the syntax used for DataSets, the | concatenates the fields and the & concatenates
     the examples.
     """
-    def __init__(self,dataset,*fieldnames):
+    def __init__(self,dataset,fieldnames):
         original_dataset=dataset
         if not fieldnames:
             fieldnames=dataset.fieldNames()
@@ -1033,7 +1033,7 @@
   the input_dataset.values{H,V}Stack functions are used by default.
   """
   def __init__(self,input_dataset,function,output_names,minibatch_mode=True,
-               values_hstack=None,values_vstack,
+               values_hstack=None,values_vstack=None,
                description=None,fieldtypes=None):
       """
       Constructor takes an input dataset that has as many fields as the function