# HG changeset patch # User Frederic Bastien # Date 1212072149 14400 # Node ID 97f35d58672706c2522c2ce61eae65788681a9e0 # Parent 77b362a23f8ee07328f1f9573fee48a1d26da939 more test. Are we wanting to limit the size of minibatch to the size of the dataset? diff -r 77b362a23f8e -r 97f35d586727 test_dataset.py --- a/test_dataset.py Thu May 29 10:41:35 2008 -0400 +++ b/test_dataset.py Thu May 29 10:42:29 2008 -0400 @@ -226,6 +226,9 @@ assert i==m.n_batches*m.minibatch_size del x,y,i,id + #@todo: we can't do minibatch bigger then the size of the dataset??? + assert have_raised2(ds.minibatches,['x','y'],n_batches=1,minibatch_size=len(array)+1,offset=0) + assert not have_raised2(ds.minibatches,['x','y'],n_batches=1,minibatch_size=len(array),offset=0) def test_ds_iterator(array,iterator1,iterator2,iterator3): l=len(iterator1)