TobiTob commited on
Commit
d8c1348
1 Parent(s): 257747f

Update CityLearn.py

Browse files
Files changed (1) hide show
  1. CityLearn.py +8 -14
CityLearn.py CHANGED
@@ -2,25 +2,17 @@ import pickle
2
  import datasets
3
  import numpy as np
4
 
5
- _DESCRIPTION = """\
6
- A subset of the D4RL dataset, used for training Decision Transformers
7
- """
8
-
9
-
10
- # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
11
- # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
12
  _BASE_URL = "https://huggingface.co/datasets/TobiTob/CityLearn/resolve/main"
13
  _URLS = {
14
- "s1_test": f"{_BASE_URL}/s1_test.pkl",
 
15
  "test": f"{_BASE_URL}/test.pkl",
16
  }
17
 
18
 
19
  class DecisionTransformerCityLearnDataset(datasets.GeneratorBasedBuilder):
20
  """The dataset comprises of tuples of (Observations, Actions, Rewards, Dones) sampled
21
- by an expert policy for various continuous control tasks (halfcheetah, hopper, walker2d)"""
22
-
23
- VERSION = datasets.Version("1.1.0")
24
 
25
  # This is an example of a dataset with multiple configurations.
26
  # If you don't want/need to define several sub-sets in your dataset,
@@ -35,13 +27,15 @@ class DecisionTransformerCityLearnDataset(datasets.GeneratorBasedBuilder):
35
  # data = datasets.load_dataset('my_dataset', 'second_domain')
36
  BUILDER_CONFIGS = [
37
  datasets.BuilderConfig(
38
- name="s1_test",
39
- version=VERSION,
 
 
 
40
  description="Test Data sampled from an expert policy in CityLearn environment",
41
  ),
42
  datasets.BuilderConfig(
43
  name="test",
44
- version=VERSION,
45
  description="Test Data sampled from an expert policy in CityLearn environment",
46
  ),
47
  ]
 
2
  import datasets
3
  import numpy as np
4
 
 
 
 
 
 
 
 
5
  _BASE_URL = "https://huggingface.co/datasets/TobiTob/CityLearn/resolve/main"
6
  _URLS = {
7
+ "s_test": f"{_BASE_URL}/s_test.pkl",
8
+ "s_8759x5": f"{_BASE_URL}/s_8759x5.pkl",
9
  "test": f"{_BASE_URL}/test.pkl",
10
  }
11
 
12
 
13
  class DecisionTransformerCityLearnDataset(datasets.GeneratorBasedBuilder):
14
  """The dataset comprises of tuples of (Observations, Actions, Rewards, Dones) sampled
15
+ by agents interacting with the CityLearn 2022 phase 1 environment"""
 
 
16
 
17
  # This is an example of a dataset with multiple configurations.
18
  # If you don't want/need to define several sub-sets in your dataset,
 
27
  # data = datasets.load_dataset('my_dataset', 'second_domain')
28
  BUILDER_CONFIGS = [
29
  datasets.BuilderConfig(
30
+ name="s_test",
31
+ description="Test Data sampled from an expert policy in CityLearn environment",
32
+ ),
33
+ datasets.BuilderConfig(
34
+ name="s_8759x5",
35
  description="Test Data sampled from an expert policy in CityLearn environment",
36
  ),
37
  datasets.BuilderConfig(
38
  name="test",
 
39
  description="Test Data sampled from an expert policy in CityLearn environment",
40
  ),
41
  ]