marktrovinger
commited on
Commit
•
152fd94
1
Parent(s):
6a41fc5
Update cartpole_gym_replay.py
Browse files- 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[
|
72 |
-
"actions": act[
|
73 |
-
"rewards": rew[
|
74 |
-
"dones": done[
|
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 |
}
|