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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pyattimo-0.4.0.tar.gz
.
File metadata
- Download URL: pyattimo-0.4.0.tar.gz
- Upload date:
- Size: 167.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c67f2065382ff9c9b9aeb08b2df980547ee894ef6c6d39b5af2d303f21d914 |
|
MD5 | 0a0c74b79958184904ec942a9d9b39bf |
|
BLAKE2b-256 | fc9f9c788f40928ac9f7e9dcccb29525020c299659762b82e193ac5ac19dd1b7 |
File details
Details for the file pyattimo-0.4.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyattimo-0.4.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d562d36973f740a6889faed0f2efa6dab088a00af9cb3d7e2f4937fca71a67da |
|
MD5 | 0f16b89c0032659eb7f0fae93b3d5937 |
|
BLAKE2b-256 | 131bdc9c61960f7bfa7cea3321ee712c2b9d93f927d5b37ad82bd084101b6630 |
File details
Details for the file pyattimo-0.4.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: pyattimo-0.4.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d955dac49aaca83e862587b5d7c1febd466cb925bee38c2b9efd4b21c517143c |
|
MD5 | 8c6386efc474c31ee4810713f243e862 |
|
BLAKE2b-256 | 08898fc20d799cb57e6be4d0813fd1d9a78f2c2c62515452c1ee6e3ece61c727 |
File details
Details for the file pyattimo-0.4.0-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: pyattimo-0.4.0-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 006d3d8cb4dd7ee6190751d6a2e449b89439c7edabfa2ec4c5a792b85f6581d0 |
|
MD5 | 296a62fce04bc63df40a6525e950f6f1 |
|
BLAKE2b-256 | 9da7fa39fa4fec23a0312eae900f6761aea79372857b0a70028ac476f789bf4d |
File details
Details for the file pyattimo-0.4.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pyattimo-0.4.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c347eeacd61d4a64af015dd956fefba960ffd946658c464375d46bcf45fd140c |
|
MD5 | c05fce74ee7680b05dba81049fa892fa |
|
BLAKE2b-256 | 77f14c5aa79b85432800017f742ded01e09f2218677bb227c27c8a6eeda3c199 |
File details
Details for the file pyattimo-0.4.0-cp37-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pyattimo-0.4.0-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 774.9 kB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a24c357b55b4e4431f7c4f2935b0be1c6f66566f7be2083198e43179d7a133b4 |
|
MD5 | 124f76353787f3344a4a7651f5a7f9ab |
|
BLAKE2b-256 | a6b314751bb1f7929b4379786d3ae09b771e29ffb26f1814623b8cf314d0669b |
File details
Details for the file pyattimo-0.4.0-cp37-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: pyattimo-0.4.0-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 870.1 kB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aec6f0b2652d27cd8efe833e7e3c78dda02bf32cfe8e0b91aaf90c681c50a60 |
|
MD5 | efe0d58dd7d815c74d39ad1f4e15d4ee |
|
BLAKE2b-256 | ecf1d511f14807e73078e5da15b90f3c661fe5c04f178b0baa244a0806465689 |