Comment out next() to enable proper execution of notebook exercises

This commit is contained in:
AntreasAntoniou 2017-09-23 15:29:42 +01:00
parent e8a9fce41e
commit 96244a105b

View File

@ -133,11 +133,11 @@ class MNISTDataProvider(DataProvider):
super(MNISTDataProvider, self).__init__( super(MNISTDataProvider, self).__init__(
inputs, targets, batch_size, max_num_batches, shuffle_order, rng) inputs, targets, batch_size, max_num_batches, shuffle_order, rng)
def next(self): # def next(self):
"""Returns next data batch or raises `StopIteration` if at end.""" # """Returns next data batch or raises `StopIteration` if at end."""
inputs_batch, targets_batch = super(MNISTDataProvider, self).next() # inputs_batch, targets_batch = super(MNISTDataProvider, self).next()
return inputs_batch, self.to_one_of_k(targets_batch) # return inputs_batch, self.to_one_of_k(targets_batch)
#
def __next__(self): def __next__(self):
return self.next() return self.next()