All APIs of TSDB¶
TSDB¶
TSDB (Time Series Data Beans): a Python toolbox loads hundreds of public time-series datasets for machine/deep learning with a single line of code.
- tsdb.list()[source]¶
List the database.
- Returns:
DATABASE – A dict contains all datasets’ names and download links.
- Return type:
- tsdb.download_and_extract(dataset_name, dataset_saving_path)[source]¶
Wrapper of _download_and_extract.
- tsdb.list_cache()[source]¶
List names of all cached datasets.
- Returns:
A list contains all cached datasets’ names.
- Return type:
list,
- tsdb.delete_cache(dataset_name=None, only_pickle=False)[source]¶
Delete CACHED_DATASET_DIR if exists.
- Parameters:
dataset_name (str, optional) – The name of the specific dataset in database.DATABASE. If dataset is not cached, then abort. Delete all cached datasets if dataset_name is left as None.
only_pickle (bool,) – Whether to delete only the cached pickle file. When the preprocessing pipeline TSDB is changed, users may want to only delete the cached pickle file which is generated by the old pipeline but keep the downloaded raw data. This option is designed for this purpose.
- Return type:
- tsdb.purge_path(path, ignore_errors=True)[source]¶
Delete the given path. It will be deleted if a file is given. Itself and all its contents will be purged will a fold is given.
- tsdb.pickle_load(path)[source]¶
Load pickled object from file.
- Parameters:
path (
str
) – Local path of the pickled object.- Returns:
Pickled object.
- Return type:
Object