# HG changeset patch # User Frederic Bastien # Date 1210085565 14400 # Node ID 6fe972a7393c03efb21d4cec2803b78e3cb038c3 # Parent 9c8f3c9c247b6a5ef67bcd4c33173001fec9c268 removed duplicated example in comment diff -r 9c8f3c9c247b -r 6fe972a7393c dataset.py --- a/dataset.py Mon May 05 17:44:49 2008 -0400 +++ b/dataset.py Tue May 06 10:52:45 2008 -0400 @@ -33,9 +33,6 @@ - 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, field3], minibatch_size=N): - - for example in dataset:: - print example['x'] - - for x,y,z in dataset: Each of these is documented below. All of these iterators are expected to provide, in addition to the usual 'next()' method, a 'next_index()' method which returns a non-negative integer pointing to the position of the next