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.6.tar.gz (157.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.6.6-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.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (966.4 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

pyattimo-0.6.6-cp37-abi3-macosx_11_0_arm64.whl (838.2 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

pyattimo-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl (953.9 kB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pyattimo-0.6.6.tar.gz
Algorithm Hash digest
SHA256 02a4d9c92d398c56a18e19add8467e652b068fb1e97fa5d35f68edfe2e17f512
MD5 e6a832572fd09284a1290174198e07c5
BLAKE2b-256 a096951e29612dd702eef8193029185e834a92e661bfd01574ba1268aa21a604

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.6.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d8763da9d77eafecb12fc2d75186cd0e02e3fc6464be6fe8acd5fadf1cf2441
MD5 5f0e2c84942e3cedd031bb316d01b95c
BLAKE2b-256 e47497749b3b4e1ebdcd7270c78d5631f420c946d78fe5df99a8ec115aea4b86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.6.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 65fb9a23e89a92cde8483f6d1294c36c981f9aa2be1b7c6eafc032fa9332eddb
MD5 bb7a94ae9e0bfadfdde3a33953708df6
BLAKE2b-256 887e589224687e24b2672fef260f9ad5f0a6d7a6ec7196b04cba2c668a2f6ea6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.6.6-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1239d5edb81bc0ee455d05c5ac7a5e5ebf5efd5e2452a72b9d9db5a3fafacf46
MD5 b1dc8a66b1be96c9acec605e2077ce24
BLAKE2b-256 892a79b8933fac436c7815ec3cf61917adcc7a3878dc3fe9ec7947176c793ed3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyattimo-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 880ca2967cd7c4d9961ec48406a9cce7ce01db9b8001f1fe4dfe59fc8f0f9207
MD5 3e0718c27ee2177bbd4b561c53ef4ee8
BLAKE2b-256 24670d65fc8e3f9bbd6f83d0f08d70ac680205e80d683e355749bd4edc14920c

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