# HG changeset patch # User Frederic Bastien # Date 1209494406 14400 # Node ID ea7d8bc38b34f51702c6586327cd31b53370bb40 # Parent 7086cfcd8ed6964595c84d288b0e6e3c6a7ae2bc fix comment diff -r 7086cfcd8ed6 -r ea7d8bc38b34 dataset.py --- a/dataset.py Tue Apr 29 12:39:09 2008 -0400 +++ b/dataset.py Tue Apr 29 14:40:06 2008 -0400 @@ -31,7 +31,7 @@ * for example in dataset([field1, field2,field3, ...]): * for val1,val2,val3 in dataset([field1, field2,field3]): * for minibatch in dataset.minibatches([field1, field2, ...],minibatch_size=N): - * for mini1,mini2,mini3 in dataset.minibatches([field1, field2, ...],minibatch_size=N): + * for mini1,mini2,mini3 in dataset.minibatches([field1, field2, field3], minibatch_size=N): * for example in dataset: print example['x'] * for x,y,z in dataset: @@ -47,8 +47,8 @@ To iterate over fields, one can do * for field in dataset.fields(): for field_value in field: # iterate over the values associated to that field for all the dataset examples - * for fields in dataset(field1,field2,...).fields() to select a subset of fields - * for fields in dataset.fields(field1,field2,...) to select a subset of fields + * for field in dataset(field1,field2,...).fields() to select a subset of fields + * for field in dataset.fields(field1,field2,...) to select a subset of fields and each of these fields is iterable over the examples: * for field_examples in dataset.fields(): for example_value in field_examples: