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.6.4.tar.gz (157.4 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.6.4-cp37-abi3-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ x86-64

pyattimo-0.6.4-cp37-abi3-musllinux_1_2_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

pyattimo-0.6.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

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

pyattimo-0.6.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (967.6 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

pyattimo-0.6.4-cp37-abi3-macosx_11_0_arm64.whl (836.4 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

pyattimo-0.6.4-cp37-abi3-macosx_10_12_x86_64.whl (947.7 kB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pyattimo-0.6.4.tar.gz
Algorithm Hash digest
SHA256 16482b38318538e1f6e61017f2a7fb1476a7bc81f306517ef7c166cfc2428f12
MD5 6780331c7e3a7966405ee3351874f171
BLAKE2b-256 58fadeaace7a8184f18064c6e245e052862e61fdb42fb9f92bf617af620d44a9

See more details on using hashes here.

File details

Details for the file pyattimo-0.6.4-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyattimo-0.6.4-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 324722c27f1ff41825f8416e2fdfd2e7c6c9994eb56113a2b8ab754c5a999fff
MD5 545e36bbbcd63a161fc08a2991adf8b7
BLAKE2b-256 e9289c30463b3c06dfa76291244146ca2ea55f2a662bfc9a1d31bdb6b249f0b5

See more details on using hashes here.

File details

Details for the file pyattimo-0.6.4-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for pyattimo-0.6.4-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cb10776fea1d3b88e0149cf1e2affe7fdef64c5eb281a1a777811db6005f2394
MD5 3ecedc3bd1ef6bb1bafe245646b663d6
BLAKE2b-256 15141efed75eeafb36d84149044dc6504b62331ef430cd967833197940c4af17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.6.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8171250d9542d5f7d9dafc82ed0b3f4a1ab307202c876bf087bf1327def05302
MD5 755d30b89f21399d17b8349a344abe87
BLAKE2b-256 e7f9855c94791329dab60d4ecbd151b79751548c441a3ee8bb44a8f6ce72ebb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.6.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 35161c0f450a0855a875a7ec8f24f819b60a7fbe39bf5399047c432c4620a40f
MD5 23fb6ecfde7395e992505c835d255572
BLAKE2b-256 217d66359d055f3f12b682e9aa4c89babd6824521b248a0e6db2fb69f141a84c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.6.4-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6d73f6266d29c2f286d27e9d16b849c29b3b4614a5be8c97c8591375861d882
MD5 8c750bf3d592c0fa9e08b5c00526645f
BLAKE2b-256 e088910fa93e59f98b2fa433de3e0b948fd297bafbd353bb35b067768507166d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.6.4-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 701861b991e0dfd8690f431834ef1f5a945ce0760d50d5b8cddd067ce506185a
MD5 ff81134881be0ef9b544cc456952391f
BLAKE2b-256 5168da552efab6c95e193429831e90aa1b2588596a9d86c04046de8c72b5f122

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