various fixes

This commit is contained in:
pswietojanski 2015-10-07 01:13:54 +01:00
parent 05f826d22d
commit 653d75e95a
2 changed files with 677 additions and 677 deletions

View File

@ -121,7 +121,7 @@ class MNISTDataProvider(DataProvider):
return numpy.random.permutation(numpy.arange(0, self.x.shape[0]))
def next(self):
print (self._curr_idx / self.batch_size)
has_enough = (self._curr_idx + self.batch_size) <= self.x.shape[0]
presented_max = (0 < self._max_num_batches <= (self._curr_idx / self.batch_size))