comparison _test_dataset.py @ 345:4efb503fd0da

Added test for dataset/RenamedFieldsDataSet
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Tue, 17 Jun 2008 14:32:54 -0400
parents b48cf8dce2bf
children 9de4274ad5ba
comparison
equal deleted inserted replaced
339:aa8aff6abbf7 345:4efb503fd0da
513 513
514 test_all(a,ds) 514 test_all(a,ds)
515 515
516 del a, ds 516 del a, ds
517 517
518 def test_RenamedFieldsDataSet(self):
519 a = numpy.random.rand(10,4)
520 ds = ArrayDataSet(a,Example(['x','y','z','w'],[slice(3),3,[0,2],0]))
521 ds = FieldsSubsetDataSet(ds,['x','y','z'],['x1','y1','z1'])
522
523 test_all(a,ds)
524
525 del a, ds
526
518 def test_MinibatchDataSet(self): 527 def test_MinibatchDataSet(self):
519 raise NotImplementedError() 528 raise NotImplementedError()
520 def test_HStackedDataSet(self): 529 def test_HStackedDataSet(self):
521 raise NotImplementedError() 530 raise NotImplementedError()
522 def test_VStackedDataSet(self): 531 def test_VStackedDataSet(self):