def get_valid_obs(self, s_idx, e_idx):
    'Get a validation minibatch with fixed starting and ending indices.\n        '
    assert self.do_valid
    batch_idxs = np.arange(s_idx, e_idx)
    obs0_batch = self.observations0.get_batch(batch_idxs)
    action_batch = self.actions.get_batch(batch_idxs)
    result = {'obs0': array_min2d(obs0_batch), 'actions': array_min2d(action_batch)}
    return result
Get a validation minibatch with fixed starting and ending indices.
def get_valid_obs(self, s_idx, e_idx):
    '\n        '
    assert self.do_valid
    batch_idxs = np.arange(s_idx, e_idx)
    obs0_batch = self.observations0.get_batch(batch_idxs)
    action_batch = self.actions.get_batch(batch_idxs)
    result = {'obs0': array_min2d(obs0_batch), 'actions': array_min2d(action_batch)}
    return result