Skip to main content

A fast and scalable algorithm for time series motif mining.

Project description

This is a python wrapper for ATTIMO, a fast algorithm for mining time series motifs, with probabilistic guarantees.

The inner workings and guarantees of the algorithm are described in this paper.

If you find this software useful for your research, please use the following citation:

@article{DBLP:journals/pvldb/CeccarelloG22,
  author    = {Matteo Ceccarello and
               Johann Gamper},
  title     = {Fast and Scalable Mining of Time Series Motifs with Probabilistic
               Guarantees},
  journal   = {Proc. {VLDB} Endow.},
  volume    = {15},
  number    = {13},
  pages     = {3841--3853},
  year      = {2022},
  url       = {https://www.vldb.org/pvldb/vol15/p3841-ceccarello.pdf},
  timestamp = {Wed, 11 Jan 2023 17:06:38 +0100},
  biburl    = {https://dblp.org/rec/journals/pvldb/CeccarelloG22.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Installation

pyATTIMO is a Rust library wrapped in Python. Therefore, if a wheel is available for your platform, you can install it simply by invoking:

pip install pyattimo

Otherwise, you need the Rust toolchain installed to be able to compile it. The simplest way is to visit https://rustup.rs/ and follow the instructions there. You will need the nightly toolchain:

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly

After that, you can just run:

pip install pyattimo

At this point, you should have the pyattimo library available in your interpreter.

Usage

In essence, the library provides an iterator over the motifs of the given time series. The following snippet illustrates the basic usage:

import pyattimo

# Load an example time series
ts = pyattimo.load_dataset("ecg", prefix=1000000)

# Create the motifs iterator
motifs = pyattimo.MotifsIterator(ts, w=1000, max_k=100)

# Get the top motif via the iterator interface
m = next(motifs)

# Plot the motif just obtained
m.plot()

Further information and examples can be found here

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

pyattimo-0.4.2.tar.gz (169.6 kB view details)

Uploaded Source

Built Distributions

pyattimo-0.4.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

pyattimo-0.4.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (960.1 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

pyattimo-0.4.2-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (902.9 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ i686

pyattimo-0.4.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (931.0 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

pyattimo-0.4.2-cp37-abi3-macosx_11_0_arm64.whl (770.3 kB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

pyattimo-0.4.2-cp37-abi3-macosx_10_12_x86_64.whl (858.8 kB view details)

Uploaded CPython 3.7+ macOS 10.12+ x86-64

File details

Details for the file pyattimo-0.4.2.tar.gz.

File metadata

  • Download URL: pyattimo-0.4.2.tar.gz
  • Upload date:
  • Size: 169.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.5.1

File hashes

Hashes for pyattimo-0.4.2.tar.gz
Algorithm Hash digest
SHA256 ed392d8167ef586e3dd4ff49f257f77cd2b4996fd3e5a821e9a13ee9c30cb46b
MD5 54015874070f933fefd7eb2a9ad96433
BLAKE2b-256 b4dd00d102a356193e9d0495fbe91c83b1e35a91012b13694b345808769f91a8

See more details on using hashes here.

File details

Details for the file pyattimo-0.4.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyattimo-0.4.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0ed2ce5527c01e1ba876b60ac6c3654ba748c1e79e803c595a4047943a802aab
MD5 b0ec3d77e9dd4dd4b3b1951476e2f9cd
BLAKE2b-256 5e25ac3719f5b3077d8345f17d32077394a1e155ec1b968bbe4f70b7e7dd4bdb

See more details on using hashes here.

File details

Details for the file pyattimo-0.4.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for pyattimo-0.4.2-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 95ac66f2acf99dd0514f16d551d72a5779d5668d803ba88349303accde674d5b
MD5 fb54f8bf1fed6d2f064b5fae9b96f134
BLAKE2b-256 fc16c1d2ab3c74839605e9f6b10da144d0dabe4c470739ee99ab97138a3d8cb8

See more details on using hashes here.

File details

Details for the file pyattimo-0.4.2-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyattimo-0.4.2-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4b9faaa1e371cd23784751a429dcceaa1d9f0b4d6f5ba9ca50ccd5966be0e316
MD5 a259f1b5f7fe68c161dce0ded8e39ff2
BLAKE2b-256 3d5f774685b65df101fe5b89759cfd3175ff6913a5f81e83957532a23d7de3d8

See more details on using hashes here.

File details

Details for the file pyattimo-0.4.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyattimo-0.4.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9de56e524a7ff29ffa7608e4182ed9fc8e2bd4e5a52df8acc028a68d4b7ff13b
MD5 53ad1a7a4cead5dfd4988abe20c58928
BLAKE2b-256 5b76bb88ccef6ce3a8799cae82b80a481a9c5379142432db567d49623d265e50

See more details on using hashes here.

File details

Details for the file pyattimo-0.4.2-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyattimo-0.4.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aae55b8aeb58a9da5da7c0196e831ab6ca22dcb2253f7ed12e7c692684836ddc
MD5 6ffc685adcde7f090cde40c875564ec0
BLAKE2b-256 d511c31bbf41cd8949eb453875328510cc26de7b7e439502d94a34398e07ed3a

See more details on using hashes here.

File details

Details for the file pyattimo-0.4.2-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyattimo-0.4.2-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7a1a6c1b0ec1a948f54e8a708aaa49971a9fb52aaeeb1506bfa30f9112b4b9ea
MD5 b7fc6efca21d8840dfc04cf54aa33906
BLAKE2b-256 439743721a1a65f77db094d0cbdb942d0ff284e0efe9557cdd821c3346475ef5

See more details on using hashes here.

Supported by

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