Skip to main content

Fast, accurate and explainable time series classification through randomization

Project description

Randomized-Supervised Time Series Forest (r-STSF)

The r-STSF is a Python package for fast, accurate, and explainable time series classification. It implements the methodology described in:

Cabello, N., Naghizade, E., Qi, J., et al. Fast, accurate and explainable time series classification through randomization. Data Min Knowl Disc (2023). https://doi.org/10.1007/s10618-023-00978-w

An arXiv version of the paper is available here: Fast, Accurate and Interpretable Time Series Classification Through Randomization by Nestor Cabello, Elham Naghizade, Jianzhong Qi, and Lars Kulik.

Installation

To install r-STSF, use pip:

pip install rSTSF

Ensure you have Python 3.6 or newer installed.

Quick Start

To use r-STSF in your Python projects, import the rstsf classifier and initialize it as follows:

from rSTSF import rstsf

classifier = rstsf()

Example Usage

Below is a simple example demonstrating how to train and predict with the r-STSF classifier:

# Assuming X_train, y_train, X_test are prepared data arrays
classifier.fit(X_train, y_train)
predictions = classifier.predict(X_test)

For more detailed examples, including how to prepare your data, refer to the Jupyter notebooks provided in the GitHub repository:

Features

  • Fast and Accurate: Achieves state-of-the-art classification accuracy efficiently, suitable for large datasets or long time series.
  • Explainability: Offers insights into classification decisions, aiding understanding and trust in predictions.
  • Flexible: Utilizes multiple time series representations and aggregation functions to capture diverse patterns.

License

r-STSF is licensed under the MIT License - see the LICENSE file for details.

Citation

If you use r-STSF in your research, please cite the following paper:

@article{rSTSF2023,
  title={Fast, accurate and explainable time series classification through randomization},
  author={Cabello, Nestor and Naghizade, Elham and Qi, Jianzhong and Kulik, Lars},
  journal={Data Mining and Knowledge Discovery},
  year={2023},
  publisher={Springer}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rSTSF-0.1.1.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rSTSF-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file rSTSF-0.1.1.tar.gz.

File metadata

  • Download URL: rSTSF-0.1.1.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for rSTSF-0.1.1.tar.gz
Algorithm Hash digest
SHA256 80a82995d6a6d66207316ffe91a9bcd6a313115a581809623ae5f9a59ad6c054
MD5 155e1db97cc542133db9bde7154b2279
BLAKE2b-256 9f737dfdbf094040db731c29f9453820fcea9abcf86e3e1dcd714f0ab0c3563c

See more details on using hashes here.

File details

Details for the file rSTSF-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rSTSF-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for rSTSF-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82d762fa2e22d1e350ea6f986dc79f00f9adfaa0e5a70621240fde3f937032dd
MD5 25e6f77893597ffc49bccbb4b772154d
BLAKE2b-256 f15d1087514528247d9bf06168008bfe0c43849ee29872278b1c00449f545829

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page