diff dataset.py @ 45:a5c70dc42972

Test functions for dataset.py
author bengioy@grenat.iro.umontreal.ca
date Tue, 29 Apr 2008 11:25:36 -0400
parents 5a85fda9b19b
children c5b07e87b0cb
line wrap: on
line diff
--- a/dataset.py	Mon Apr 28 13:52:54 2008 -0400
+++ b/dataset.py	Tue Apr 29 11:25:36 2008 -0400
@@ -4,6 +4,7 @@
 from misc import unique_elements_list_intersection
 from string import join
 from sys import maxint
+import numpy
 
 class AbstractFunction (Exception): """Derived class must override this function"""
 class NotImplementedYet (NotImplementedError): """Work in progress, this should eventually be implemented"""
@@ -376,7 +377,7 @@
             rows = i
         if rows is not None:
             fields_values = zip(*[self[row] for row in rows])
-            return DataSet.MinibatchDataSet(
+            return MinibatchDataSet(
                 Example(self.fieldNames(),[ self.valuesVStack(fieldname,field_values)
                                             for fieldname,field_values
                                             in zip(self.fieldNames(),fields_values)]))