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.7.1.tar.gz (258.5 kB view details)

Uploaded Source

Built Distributions

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

pyattimo-0.7.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.4 MB view details)

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

pyattimo-0.7.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

pyattimo-0.7.1-cp37-abi3-macosx_11_0_arm64.whl (847.1 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

pyattimo-0.7.1-cp37-abi3-macosx_10_12_x86_64.whl (964.3 kB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pyattimo-0.7.1.tar.gz
Algorithm Hash digest
SHA256 464fc54656ca364f65a29030b55dcc27822077093850e4ad69329172666718d3
MD5 2dd0e05ddfdca169d40000acb1e95893
BLAKE2b-256 951f7efddec4cb6b2e202c37e8a9db56704ee23552e2ddb407eaec133b9125c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.7.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 def607f66cff097c4faf44e002c29ca5bdc397b9fdaa6212ce3c050db5a39e2e
MD5 fdf1dbe3afb64631af10f9b25c798618
BLAKE2b-256 289575d5e0cc01393e9e2e16c1aa62a6970ac2f39e71cda8ac2d984ddec5301c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.7.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 81fade3f05d6d715bd1b86703dc0c50c10ee6c3cbd3d551d3de3366187d5fa76
MD5 bba5c76b88ed69fdc64b63f377b225a2
BLAKE2b-256 85c460512860c68fe1ad14eb9a1b4e4d2e0cd3bb3dbac7a597166613ed50c76b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.7.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efdbc1d954b2c3feaa2b570ada00c1b1e7a8030503a444226b06a83c7c5e5263
MD5 81124f402951cad5661c64acfa6c0574
BLAKE2b-256 6b8c5d876221c0ee412a8fe2353e4bdb2af91bae85db4303b6ef4c77a72fe7ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.7.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e29743b699acd551f085dc5fdad53bf086d694547ef0a76588d8523f6261e164
MD5 63aa379f4568a011eed38fdc14410ac6
BLAKE2b-256 3198d67f17afa76de402714c62d01808da51349f2e509fb2141fe71c8015e2ec

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