Mercurial > pylearn
diff dataset.py @ 334:a0f150a33b0f
debug in an assert of minibatches
author | Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca> |
---|---|
date | Mon, 16 Jun 2008 16:52:39 -0400 |
parents | dada08a6adb8 |
children | 89d88807e958 |
line wrap: on
line diff
--- a/dataset.py Mon Jun 16 16:44:11 2008 -0400 +++ b/dataset.py Mon Jun 16 16:52:39 2008 -0400 @@ -387,7 +387,7 @@ #return DataSet.MinibatchWrapAroundIterator(self,fieldnames,minibatch_size,n_batches,offset)\ assert offset >= 0 assert offset < len(self) - assert offset + minibatch_size < len(self) + assert offset + minibatch_size -1 < len(self) return minibatch_nowrap(fieldnames,minibatch_size,n_batches,offset) def minibatches_nowrap(self,fieldnames,minibatch_size,n_batches,offset):