Mercurial > pylearn
comparison test_dataset.py @ 149:feec9039b941
typo
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Mon, 12 May 2008 15:50:49 -0400 |
parents | a5329e719229 |
children | e8c8022582f4 |
comparison
equal
deleted
inserted
replaced
148:a5329e719229 | 149:feec9039b941 |
---|---|
393 | 393 |
394 test_iterate_over_examples(a2, ds2) | 394 test_iterate_over_examples(a2, ds2) |
395 test_getitem(a2, ds2) | 395 test_getitem(a2, ds2) |
396 | 396 |
397 # - for val1,val2,val3 in dataset(field1, field2,field3): | 397 # - for val1,val2,val3 in dataset(field1, field2,field3): |
398 test_ds_iterator(a2,ds2('x','y'),ds2('y','z'),ds(2'x','y','z')) | 398 test_ds_iterator(a2,ds2('x','y'),ds2('y','z'),ds2('x','y','z')) |
399 | 399 |
400 | 400 |
401 assert len(ds2.fields())==3 | 401 assert len(ds2.fields())==3 |
402 for field in ds2.fields(): | 402 for field in ds2.fields(): |
403 for field_value in field: # iterate over the values associated to that field for all the ds examples | 403 for field_value in field: # iterate over the values associated to that field for all the ds examples |