Mercurial > pylearn
comparison dataset.py @ 335:89d88807e958
sorry for all the debugging, this push should be the good one (and damn you *self*)
author | Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca> |
---|---|
date | Mon, 16 Jun 2008 16:59:35 -0400 |
parents | a0f150a33b0f |
children | 0ce6e62ac6e5 5e38ed2b3a75 |
comparison
equal
deleted
inserted
replaced
334:a0f150a33b0f | 335:89d88807e958 |
---|---|
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 -1 < len(self) | 390 assert offset + minibatch_size -1 < len(self) |
391 return minibatch_nowrap(fieldnames,minibatch_size,n_batches,offset) | 391 return self.minibatches_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. |
396 It does not need to worry about wrapping around multiple times across the dataset, | 396 It does not need to worry about wrapping around multiple times across the dataset, |