Mercurial > pylearn
comparison _test_dataset.py @ 348:952129cd55cb
corrected test_RenamedFieldsDataSet. It still fail, but this should be du to bug in RenamedFieldsDataSet.
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Tue, 17 Jun 2008 14:59:10 -0400 |
parents | 3aa9e5a5802a |
children | 2174fe5cc7d0 |
comparison
equal
deleted
inserted
replaced
347:3aa9e5a5802a | 348:952129cd55cb |
---|---|
599 | 599 |
600 del a, ds | 600 del a, ds |
601 | 601 |
602 def test_RenamedFieldsDataSet(self): | 602 def test_RenamedFieldsDataSet(self): |
603 a = numpy.random.rand(10,4) | 603 a = numpy.random.rand(10,4) |
604 ds = ArrayDataSet(a,Example(['x','y','z','w'],[slice(3),3,[0,2],0])) | 604 ds = ArrayDataSet(a,Example(['x1','y1','z1','w1'],[slice(3),3,[0,2],0])) |
605 ds = FieldsSubsetDataSet(ds,['x','y','z'],['x1','y1','z1']) | 605 ds = RenamedFieldsDataSet(ds,['x1','y1','z1'],['x','y','z']) |
606 | 606 |
607 test_all(a,ds) | 607 test_all(a,ds) |
608 | 608 |
609 del a, ds | 609 del a, ds |
610 | 610 |