Mercurial > pylearn
comparison test_dataset.py @ 52:e3ac93e27e16
Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Tue, 29 Apr 2008 14:40:44 -0400 |
parents | 59757365a057 b6730f9a336d |
children | 70147d00615a |
comparison
equal
deleted
inserted
replaced
51:59757365a057 | 52:e3ac93e27e16 |
---|---|
17 minibatch_iterator = ds.minibatches(fieldnames=['z','y'],n_batches=1,minibatch_size=3,offset=4) | 17 minibatch_iterator = ds.minibatches(fieldnames=['z','y'],n_batches=1,minibatch_size=3,offset=4) |
18 minibatch = minibatch_iterator.__iter__().next() | 18 minibatch = minibatch_iterator.__iter__().next() |
19 print "minibatch=",minibatch | 19 print "minibatch=",minibatch |
20 for var in minibatch: | 20 for var in minibatch: |
21 print "var=",var | 21 print "var=",var |
22 print "take a slice:",ds[1:6:2] | 22 print "take a slice and look at field y",ds[1:6:2]["y"] |
23 | 23 |
24 test1() | 24 test1() |