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.8.1.tar.gz (257.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.8.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.6 MB view details)

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

pyattimo-0.8.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.8.1-cp37-abi3-macosx_11_0_arm64.whl (816.2 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pyattimo-0.8.1.tar.gz
Algorithm Hash digest
SHA256 c632d853858293f71516671486096fb6672d5c24ff02775132244be87b7da18e
MD5 37eb50e10f48a07841d94500d4ad8bab
BLAKE2b-256 fb50303b64bddc1510267774ba0a307d8036e53ab29ff93ad12c050df5c58f24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.8.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d4339c595ffc465faf30f7d6ffaf17a79528a7dafc8fe38e1d9917d0c82730b
MD5 6ac9276a6c1ab0f205d8b035535482d4
BLAKE2b-256 022856efb22c8ae242a7b0b5694d7706c77c977f104c8e6a64b0caf0a39118e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.8.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1b13e1518c5c059c9a4a4e5b3d5687ac2403495bef5c68bd72a5bcf626eaa686
MD5 158aeb39bd4c7038f19f21085b095274
BLAKE2b-256 b93520716a94929c411400f6aa0895c115847fb1fb53c2da4134400188217fee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.8.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f0cc6af3f7b00e76c20411c12cb2a70a318ef5558e345a01fd3f2b5cce7f7a6
MD5 b00f710dcab6c0395229f3b896dc7009
BLAKE2b-256 36446141ee8d6548011b455664c9c5613cc291b735117432e8ed3a3743c6a03d

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