def get_default_reward(self, _):
    try:
        reward = self._train_batch_()
    except StopIteration:
        self.train_batch_index = 0
        self.epoch_index += 1
        self.train_loader_it = iter(self.train_loader)
        reward = self._train_batch_()
    return reward
def get_default_reward(self, _):
    try:
        reward = self._train_batch_()
    except StopIteration:
        self.train_batch_index = 0
        self.epoch_index += 1
        self.train_loader_it = iter(self.train_loader)
        reward = self._train_batch_()
    return reward