TobiTob commited on
Commit
9d4cea4
·
1 Parent(s): 59d0a04

Update CityLearn.py

Browse files
Files changed (1) hide show
  1. CityLearn.py +3 -6
CityLearn.py CHANGED
@@ -17,7 +17,6 @@ _BASE_URL = "https://huggingface.co/datasets/TobiTob/CityLearn/resolve/main"
17
  _URLS = {
18
  "test": f"{_BASE_URL}/test.pkl",
19
  "sequences": f"{_BASE_URL}/sequences.pkl",
20
- "halfcheetah-medium-replay-v2": f"{_BASE_URL}/halfcheetah-medium-replay-v2.pkl",
21
  }
22
 
23
 
@@ -49,11 +48,6 @@ class DecisionTransformerGymDataset(datasets.GeneratorBasedBuilder):
49
  version=VERSION,
50
  description="Test Data sampled from an expert policy in CityLearn environment",
51
  ),
52
- datasets.BuilderConfig(
53
- name="halfcheetah-medium-replay-v2",
54
- version=VERSION,
55
- description="Data sampled from an medium policy in the halfcheetah Mujoco environment",
56
- ),
57
  ]
58
 
59
  def _info(self):
@@ -102,6 +96,9 @@ class DecisionTransformerGymDataset(datasets.GeneratorBasedBuilder):
102
  with open(filepath, "rb") as f:
103
  trajectories = pickle.load(f)
104
 
 
 
 
105
  for idx, traj in enumerate(trajectories):
106
  yield idx, {
107
  "observations": traj["observations"],
 
17
  _URLS = {
18
  "test": f"{_BASE_URL}/test.pkl",
19
  "sequences": f"{_BASE_URL}/sequences.pkl",
 
20
  }
21
 
22
 
 
48
  version=VERSION,
49
  description="Test Data sampled from an expert policy in CityLearn environment",
50
  ),
 
 
 
 
 
51
  ]
52
 
53
  def _info(self):
 
96
  with open(filepath, "rb") as f:
97
  trajectories = pickle.load(f)
98
 
99
+ print(trajectories)
100
+ print(type(trajectories))
101
+
102
  for idx, traj in enumerate(trajectories):
103
  yield idx, {
104
  "observations": traj["observations"],