Update CityLearn.py
Browse files- CityLearn.py +4 -7
CityLearn.py
CHANGED
@@ -6,20 +6,17 @@ _DESCRIPTION = """\
|
|
6 |
A subset of the D4RL dataset, used for training Decision Transformers
|
7 |
"""
|
8 |
|
9 |
-
_HOMEPAGE = "https://github.com/rail-berkeley/d4rl"
|
10 |
-
|
11 |
-
_LICENSE = "Apache-2.0"
|
12 |
|
13 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
14 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
15 |
_BASE_URL = "https://huggingface.co/datasets/TobiTob/CityLearn/resolve/main"
|
16 |
_URLS = {
|
|
|
17 |
"test": f"{_BASE_URL}/test.pkl",
|
18 |
-
"sequences": f"{_BASE_URL}/s1_test.pkl",
|
19 |
}
|
20 |
|
21 |
|
22 |
-
class
|
23 |
"""The dataset comprises of tuples of (Observations, Actions, Rewards, Dones) sampled
|
24 |
by an expert policy for various continuous control tasks (halfcheetah, hopper, walker2d)"""
|
25 |
|
@@ -38,12 +35,12 @@ class DecisionTransformerGymDataset(datasets.GeneratorBasedBuilder):
|
|
38 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
39 |
BUILDER_CONFIGS = [
|
40 |
datasets.BuilderConfig(
|
41 |
-
name="
|
42 |
version=VERSION,
|
43 |
description="Test Data sampled from an expert policy in CityLearn environment",
|
44 |
),
|
45 |
datasets.BuilderConfig(
|
46 |
-
name="
|
47 |
version=VERSION,
|
48 |
description="Test Data sampled from an expert policy in CityLearn environment",
|
49 |
),
|
|
|
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 |
|
|
|
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 |
),
|