Welcome to TSDB documentation!#

TSDB logo

A Python Toolbox to Ease Loading Public Time-Series Datasets

Python version the latest release version License GitHub Testing Code Climate maintainability Coveralls report Conda downloads PyPI downloads CODE of CONDUCTVisit num

📣 TSDB now supports a total of 1️⃣6️⃣9️⃣ time-series datasets ‼️

PyPOTS logo

TSDB is a part of PyPOTS project (a Python toolbox for data mining on Partially-Observed Time Series), and was separated from PyPOTS for decoupling datasets from learning algorithms.

TSDB is created to help researchers and engineers get rid of data collecting and downloading, and focus back on data processing details. TSDB provides all-in-one-stop convenience for downloading and loading open-source time-series datasets (available datasets listed below).

❗️Please note that due to people have very different requirements for data processing, data-loading functions in TSDB only contain the most general steps (e.g. removing invalid samples) and won’t process the data (not even normalize it). So, no worries, TSDB won’t affect your data preprocessing. If you only want the raw datasets, TSDB can help you download and save raw datasets as well (take a look at Usage Examples below).

🤝 If you need TSDB to integrate an open-source dataset or want to add it into TSDB yourself, please feel free to request for it by creating an issue or make a PR to merge your code.

🤗 Please star this repo to help others notice TSDB if you think it is a useful toolkit. Please properly cite TSDB in your publications if it helps with your research. This really means a lot to our open-source research. Thank you!

❖ Usage Examples#

TSDB is available on both PyPI and Anaconda.

Install it with conda install tsdb, you may need to specify the channel with option -c conda-forge

or install via PyPI:

pip install tsdb

or install from source code:

pip install https://github.com/WenjieDu/TSDB/archive/main.zip

 1import tsdb
 2
 3# list all available datasets in TSDB
 4tsdb.list()
 5# select the dataset you need and load it, TSDB will download, extract, and process it automatically
 6data = tsdb.load('physionet_2012')
 7# if you need the raw data, use download_and_extract()
 8tsdb.download_and_extract('physionet_2012', './save_it_here')
 9# datasets you once loaded are cached, and you can check them with list_cached_data()
10tsdb.list_cache()
11# you can delete only one specific dataset and preserve others
12tsdb.delete_cache(dataset_name='physionet_2012')
13# or you can delete all cache with delete_cached_data() to free disk space
14tsdb.delete_cache()
15
16# to avoid taking up too much space if downloading many datasets,
17# TSDB cache directory can be migrated to an external disk
18tsdb.migrate_cache("/mnt/external_disk/TSDB_cache")

That’s all. Simple and efficient. Enjoy it! 😃

❖ List of Available Datasets#

Name

Main Tasks

PhysioNet Challenge 2012 [1]

Forecasting, Imputation, Classification

PhysioNet Challenge 2019 [2]

Forecasting, Imputation, Classification

Beijing Multi-Site Air-Quality [3]

Forecasting, Imputation

Electricity Load Diagrams [4]

Forecasting, Imputation

Electricity Transformer Temperature (ETT) [5]

Forecasting, Imputation

Vessel AIS data [6]

Forecasting, Imputation, Classification

UCR & UEA Datasets (all 163 datasets) [7] [8]

Classification

❖ Citing TSDB/PyPOTS#

The paper introducing PyPOTS is available on arXiv at this URL., and we are pursuing to publish it in prestigious academic venues, e.g. JMLR (track for Machine Learning Open Source Software). If you use PyPOTS in your work, please cite it as below and 🌟star PyPOTS repository to make others notice this library. 🤗

PyPOTS Ecosystem Pipeline
 1@article{du2023PyPOTS,
 2title={{PyPOTS: A Python Toolbox for Data Mining on Partially-Observed Time Series}},
 3author={Wenjie Du},
 4year={2023},
 5eprint={2305.18811},
 6archivePrefix={arXiv},
 7primaryClass={cs.LG},
 8url={https://arxiv.org/abs/2305.18811},
 9doi={10.48550/arXiv.2305.18811},
10}

or

Wenjie Du. (2023). PyPOTS: A Python Toolbox for Data Mining on Partially-Observed Time Series. arXiv, abs/2305.18811. https://doi.org/10.48550/arXiv.2305.18811