comparison dataset.py @ 95:6fe972a7393c

removed duplicated example in comment
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Tue, 06 May 2008 10:52:45 -0400
parents a289b8bed64c
children 7186e4f502d1
comparison
equal deleted inserted replaced
94:9c8f3c9c247b 95:6fe972a7393c
31 - for val1,val2,... in dataset: 31 - for val1,val2,... in dataset:
32 - for example in dataset(field1, field2,field3, ...): 32 - for example in dataset(field1, field2,field3, ...):
33 - for val1,val2,val3 in dataset(field1, field2,field3): 33 - for val1,val2,val3 in dataset(field1, field2,field3):
34 - for minibatch in dataset.minibatches([field1, field2, ...],minibatch_size=N): 34 - for minibatch in dataset.minibatches([field1, field2, ...],minibatch_size=N):
35 - for mini1,mini2,mini3 in dataset.minibatches([field1, field2, field3], minibatch_size=N): 35 - for mini1,mini2,mini3 in dataset.minibatches([field1, field2, field3], minibatch_size=N):
36 - for example in dataset::
37 print example['x']
38 - for x,y,z in dataset:
39 Each of these is documented below. All of these iterators are expected 36 Each of these is documented below. All of these iterators are expected
40 to provide, in addition to the usual 'next()' method, a 'next_index()' method 37 to provide, in addition to the usual 'next()' method, a 'next_index()' method
41 which returns a non-negative integer pointing to the position of the next 38 which returns a non-negative integer pointing to the position of the next
42 example that will be returned by 'next()' (or of the first example in the 39 example that will be returned by 'next()' (or of the first example in the
43 next minibatch returned). This is important because these iterators 40 next minibatch returned). This is important because these iterators