Mercurial > pylearn
comparison 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 |
comparison
equal
deleted
inserted
replaced
332:dada08a6adb8 | 334:a0f150a33b0f |
---|---|
385 | 385 |
386 """ | 386 """ |
387 #return DataSet.MinibatchWrapAroundIterator(self,fieldnames,minibatch_size,n_batches,offset)\ | 387 #return DataSet.MinibatchWrapAroundIterator(self,fieldnames,minibatch_size,n_batches,offset)\ |
388 assert offset >= 0 | 388 assert offset >= 0 |
389 assert offset < len(self) | 389 assert offset < len(self) |
390 assert offset + minibatch_size < len(self) | 390 assert offset + minibatch_size -1 < len(self) |
391 return minibatch_nowrap(fieldnames,minibatch_size,n_batches,offset) | 391 return minibatch_nowrap(fieldnames,minibatch_size,n_batches,offset) |
392 | 392 |
393 def minibatches_nowrap(self,fieldnames,minibatch_size,n_batches,offset): | 393 def minibatches_nowrap(self,fieldnames,minibatch_size,n_batches,offset): |
394 """ | 394 """ |
395 This is the minibatches iterator generator that sub-classes must define. | 395 This is the minibatches iterator generator that sub-classes must define. |