-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from WenjieDu/dev
Adding the ETT dataset
- Loading branch information
Showing
9 changed files
with
124 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
dataset_profiles/electricity_transformer_temperature/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Electricity Transformer Temperature | ||
|
||
## Citing this dataset 🤗 | ||
|
||
`Zhou, H., Zhang, S., Peng, J., Zhang, S., Li, J., Xiong, H., & Zhang, W. (2021, May). | ||
Informer: Beyond efficient transformer for long sequence time-series forecasting. | ||
In Proceedings of the AAAI conference on artificial intelligence (Vol. 35, No. 12, pp. 11106-11115).` | ||
|
||
or | ||
|
||
```bibtex | ||
@inproceedings{zhou2021informer, | ||
author = {Haoyi Zhou and Shanghang Zhang and Jieqi Peng and Shuai Zhang and Jianxin Li and Hui Xiong and Wancai Zhang}, | ||
title = {Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting}, | ||
booktitle = {The Thirty-Fifth {AAAI} Conference on Artificial Intelligence, {AAAI} 2021, Virtual Conference}, | ||
volume = {35}, | ||
number = {12}, | ||
pages = {11106--11115}, | ||
publisher = {{AAAI} Press}, | ||
year = {2021}, | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
""" | ||
Scripts related to dataset Electricity Transformer Temperature. | ||
For more information please refer to: | ||
https://github.com/WenjieDu/TSDB/tree/main/dataset_profiles/electricity_transformer_temperature | ||
""" | ||
|
||
# Created by Wenjie Du <wenjay.du@gmail.com> | ||
# License: BSD-3-Clause | ||
|
||
import os | ||
|
||
import pandas as pd | ||
|
||
|
||
def load_ett(local_path): | ||
"""Load dataset Electricity Transformer Temperature. | ||
Parameters | ||
---------- | ||
local_path : str, | ||
The local path of dir saving the raw data of Electricity Transformer Temperature. | ||
Returns | ||
------- | ||
data : dict | ||
A dictionary contains all four sub datasets: | ||
ETTm1 : pandas.DataFrame | ||
The time-series data of ETTm1 | ||
ETTm2 : pandas.DataFrame | ||
The time-series data of ETTm2 | ||
ETTh1 : pandas.DataFrame | ||
The time-series data of ETTh1 | ||
ETTh2 : pandas.DataFrame | ||
The time-series data of ETTh2 | ||
""" | ||
sub_datasets = [ | ||
"ETTm1.csv", | ||
"ETTm2.csv", | ||
"ETTh1.csv", | ||
"ETTh2.csv", | ||
] | ||
|
||
data = {} | ||
for sub_set in sub_datasets: | ||
file_path = os.path.join(local_path, sub_set) | ||
df = pd.read_csv(file_path, index_col="date") | ||
df.index = pd.to_datetime(df.index) | ||
df_name = sub_set.removesuffix(".csv") | ||
data[df_name] = df | ||
|
||
return data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters