marktrovinger commited on
Commit
152fd94
1 Parent(s): 6a41fc5

Update cartpole_gym_replay.py

Browse files
Files changed (1) hide show
  1. cartpole_gym_replay.py +4 -4
cartpole_gym_replay.py CHANGED
@@ -68,8 +68,8 @@ class DecisionTransformerGymDataset(datasets.GeneratorBasedBuilder):
68
  dones = np.load(f'{filepath}/dones.npy')
69
  for idx, value in enumerate(obs):
70
  yield idx, {
71
- "observations": obs[i],
72
- "actions": act[i],
73
- "rewards": rew[i],
74
- "dones": done[i],
75
  }
 
68
  dones = np.load(f'{filepath}/dones.npy')
69
  for idx, value in enumerate(obs):
70
  yield idx, {
71
+ "observations": obs[idx],
72
+ "actions": act[idx],
73
+ "rewards": rew[idx],
74
+ "dones": done[idx],
75
  }