Skip to main content

TSFEDL: A Python Library for Time Series Spatio-Temporal Feature Extraction and Prediction using Deep Learning.

Description

Time series feature extraction is a classical problem in time series analysis. Classical addition and multiplication models have been used for this purpose until the appearance of Artificial Neural Networks and Deep Learning. This problem has gained attention since multiple real-life problems imply the usage of time series.

In this repository, we introduce a new Python module which compiles 20 backbones for time series feature extraction using Deep Learning. This module has been created to cover the necessity of a versatile and expandable piece of software for practitioners to use in their problems.

How to run

Conda environment for GPU clusters

To easily use the library inside a conda environment the following commands are recommended to install the module. First of all install pip inside anaconda, which will install python inside the environment as well to encapsulate the whole installation.

conda install -c anaconda pip

After this, if a GPU is going to be used, we should install cuDNN 8.2.1 for the current tensorflow-gpu version (2.6.0). The NVIDIA CUDA toolkit will be also installed as a cuDNN dependency.

conda install -c anaconda cudnn==8.2.1

Finally, we can install the TSFEDL library using pip3 (which will be inside the conda environment, you can check this by running "which pip3"). This will install as dependencies pytorch-lightning, pytorch, tensorflow-gpu and all the needed packages. Use the --use-feature=2020-resolver flag if the installation runs into an error.

pip3 install --use-feature=2020-resolver tsfedl

Otherwise use

pip3 install tsfedl

After this everything is set up.

PyPi

The module is uploaded to PyPi for an easy installation:

pip install tsfedl

or

pip3 install tsfedl

Documentation

The documentation of the model can be found in https://s-tsfe-dl.readthedocs.io/en/latest/

Using the repository

First, install dependencies

# clone project
git clone https://github.com/ari-dasci/S-TSFE-DL.git

# install project
cd S-TSFE-DL
pip install -e .

Examples

To run an example, navigate to any file and run it.

cd project/examples

# run example
python arrythmia_experiment.py

Imports

This project is set up as a package which means you can now easily import any file into any other file like so:

import tensorflow as tf
import TSFEDL.models_keras as TSFEDL

# get the OhShuLih model
model = TSFEDL.OhShuLih(input_tensor=input, include_top=True)

# compile and fit as usual
model.compile(optimizer='Adam')
model.fit(X, y, epochs=20)

Citation

Please cite this work as:

Time Series Feature Extraction using Deep Learning library (https://github.com/ari-dasci/S-TSFE-DL/)

@article{AGUILERAMARTOS2023223,
title = {{TSFEDL}: A python library for time series spatio-temporal feature extraction and prediction using deep learning},
journal = {Neurocomputing},
volume = {517},
pages = {223-228},
year = {2023},
doi = {https://doi.org/10.1016/j.neucom.2022.10.062},
author = {Ignacio Aguilera-Martos and Ángel M. García-Vico and Julián Luengo and Sergio Damas and Francisco J. Melero and José Javier Valle-Alonso and Francisco Herrera}
}

ArXiV reference with extended material: https://arxiv.org/abs/2206.03179

Metadata

Release files for TSFEDL 1.0.7.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TSFEDL 1.0.7.7
File Size Uploaded
TSFEDL-1.0.7.7.tar.gz 58.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TSFEDL 1.0.7.7
File Interpreter ABI Platform
TSFEDL-1.0.7.7-py3-none-any.whl Python 3 none any Details

Total release size: 106.5 kB

Release files / TSFEDL-1.0.7.7.tar.gz

Download URL TSFEDL-1.0.7.7.tar.gz
Size 58.5 kB
Tags Source
SHA-256 checksum
How to use checksums
015228543bc5cc9732d21b553d2ef9bf2a57be0b5283cd6a3a5a17300f5d08d2
BLAKE2b-256 checksum
How to use checksums
2545988ca7db81665d5c6718a438100a2bbdf7ee22e8d81cffaa134101795016
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.16

Release files / TSFEDL-1.0.7.7-py3-none-any.whl

Download URL TSFEDL-1.0.7.7-py3-none-any.whl
Size 48.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e43977410e62f005b96f0d67ecbe65451d9022279a10457cae4ca6f6f1a85e9
BLAKE2b-256 checksum
How to use checksums
efbe3b43d3007a9667b1678c12299b94f2cd3ab35e1fd5a467dd8d93f056d8d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.16

Release history Release notifications | RSS feed

This release

1.0.7.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page