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.0.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.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rSTSF-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5056d78d6648b55f2571bdd3b5dfbab31be41840fad79ad91c2a1d3d270b058c
MD5 27c37432225775efc382ddfeadc19152
BLAKE2b-256 0af4613a62c43e55bd62af183282ac94a75c2086c54b9ad80f7b2c2a5be1bd6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rSTSF-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03516f27829254f6410b6178f13f1c2a171223364a61d32aad8ba90eb6f9c08f
MD5 609ff16468b2b7c05e931dd34e59ccf6
BLAKE2b-256 13a4cb25cc4781e7dff6f73cabf71f296f1e46510281847ebf0f4358617c3898

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