changeset 336:0ce6e62ac6e5

Automated merge with ssh://projects@lgcm.iro.umontreal.ca/hg/pylearn
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Mon, 16 Jun 2008 17:07:44 -0400
parents 89d88807e958 (diff) 7d2f7b8fe213 (current diff)
children 7d4792fc28ae
files dataset.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dataset.py	Mon Jun 16 17:07:41 2008 -0400
+++ b/dataset.py	Mon Jun 16 17:07:44 2008 -0400
@@ -387,8 +387,8 @@
         #return DataSet.MinibatchWrapAroundIterator(self,fieldnames,minibatch_size,n_batches,offset)\
         assert offset >= 0
         assert offset < len(self)
-        assert offset + minibatch_size < len(self)
-        return minibatch_nowrap(fieldnames,minibatch_size,n_batches,offset)
+        assert offset + minibatch_size -1 < len(self)
+        return self.minibatches_nowrap(fieldnames,minibatch_size,n_batches,offset)
 
     def minibatches_nowrap(self,fieldnames,minibatch_size,n_batches,offset):
         """