Mercurial > pylearn
comparison test_dataset.py @ 142:ad144fa72bf5
Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Mon, 12 May 2008 14:15:16 -0400 |
parents | 0c6fec172ae1 |
children | 933db7ece663 |
comparison
equal
deleted
inserted
replaced
134:3f4e5c9bdc5e | 142:ad144fa72bf5 |
---|---|
318 #the name <property>. The following properties should be supported: | 318 #the name <property>. The following properties should be supported: |
319 # - 'description': a textual description or name for the ds | 319 # - 'description': a textual description or name for the ds |
320 # - 'fieldtypes': a list of types (one per field) | 320 # - 'fieldtypes': a list of types (one per field) |
321 | 321 |
322 #* ds1 | ds2 | ds3 == ds.hstack([ds1,ds2,ds3])#???? | 322 #* ds1 | ds2 | ds3 == ds.hstack([ds1,ds2,ds3])#???? |
323 i=0 | 323 #hstack([ds('x','y'),ds('z')] |
324 for example in hstack([ds('x'),ds('y'),ds('z')]): | 324 #hstack([ds('z','y'),ds('x')] |
325 example==ds[i] | 325 #assert have_thrown("hstack([ds('x'),ds('x')]") |
326 i+=1 | 326 #assert not have_thrown("hstack([ds('x'),ds('x')]") |
327 del i,example | 327 #accept_nonunique_names |
328 #assert have_thrown("hstack([ds('y','x'),ds('x')]") | |
329 # i=0 | |
330 # for example in hstack([ds('x'),ds('y'),ds('z')]): | |
331 # example==ds[i] | |
332 # i+=1 | |
333 # del i,example | |
328 #* ds1 & ds2 & ds3 == ds.vstack([ds1,ds2,ds3])#???? | 334 #* ds1 & ds2 & ds3 == ds.vstack([ds1,ds2,ds3])#???? |
329 | 335 |
330 | 336 |
331 print "test_ArrayDataSet" | 337 print "test_ArrayDataSet" |
332 a = numpy.random.rand(10,4) | 338 a = numpy.random.rand(10,4) |