diff _test_dataset.py @ 346:9de4274ad5ba

Automated merge with ssh://projects@lgcm.iro.umontreal.ca/hg/pylearn
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Tue, 17 Jun 2008 14:33:15 -0400
parents 2259f6fa4959 4efb503fd0da
children 3aa9e5a5802a
line wrap: on
line diff
--- a/_test_dataset.py	Tue Jun 17 14:32:03 2008 -0400
+++ b/_test_dataset.py	Tue Jun 17 14:33:15 2008 -0400
@@ -533,6 +533,15 @@
 
         del a, ds
 
+    def test_RenamedFieldsDataSet(self):
+        a = numpy.random.rand(10,4)
+        ds = ArrayDataSet(a,Example(['x','y','z','w'],[slice(3),3,[0,2],0]))
+        ds = FieldsSubsetDataSet(ds,['x','y','z'],['x1','y1','z1'])
+
+        test_all(a,ds)
+
+        del a, ds
+
     def test_MinibatchDataSet(self):
         raise NotImplementedError()
     def test_HStackedDataSet(self):