Mercurial > pylearn
changeset 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 |
files | _test_dataset.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/_test_dataset.py Tue Jun 17 14:46:15 2008 -0400 +++ b/_test_dataset.py Tue Jun 17 14:59:10 2008 -0400 @@ -601,8 +601,8 @@ 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']) + ds = ArrayDataSet(a,Example(['x1','y1','z1','w1'],[slice(3),3,[0,2],0])) + ds = RenamedFieldsDataSet(ds,['x1','y1','z1'],['x','y','z']) test_all(a,ds)