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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyattimo-0.6.5.tar.gz.
File metadata
- Download URL: pyattimo-0.6.5.tar.gz
- Upload date:
- Size: 157.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe233a0d9b48d9b86b07c5c2b96a6296897376649ac2282cd032e3e09c926c9
|
|
| MD5 |
7419492cbfa256142d1ee5cb8d8d7e2d
|
|
| BLAKE2b-256 |
9d9c3787fd7da66786419b31a177820d8f62b23e48ca831655d0b05e0487a401
|
File details
Details for the file pyattimo-0.6.5-cp37-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: pyattimo-0.6.5-cp37-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01840b820943917e98df8e12ee1ee271358b29acd240d690675d8d836d9773fa
|
|
| MD5 |
0c85bb9552a4711e05c26ccf1e414ae1
|
|
| BLAKE2b-256 |
450a079da2f2a454db14d212a47b4c713fb89aefa66eebab53602ebbca9002eb
|
File details
Details for the file pyattimo-0.6.5-cp37-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: pyattimo-0.6.5-cp37-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adcab16bf9ba7d9661117f96bc9562c1ab384586c15bde37b2817fb1a268bf65
|
|
| MD5 |
4d52af5e3512d390ff5c91071106bd81
|
|
| BLAKE2b-256 |
c22fa706150c6233e0f4e39873a39271c1dcd44aa5697e9a813b722471594304
|
File details
Details for the file pyattimo-0.6.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyattimo-0.6.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe74d023b0518ec498aebb65c14617b61a309bf4232f508ed5c9f37a1579c68c
|
|
| MD5 |
f530d1edfe37f43cda922efae2751846
|
|
| BLAKE2b-256 |
2e51bf2598ac7648fb949ebc4bbfa837311fe0cc903612ac283ad787076c5cf2
|
File details
Details for the file pyattimo-0.6.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: pyattimo-0.6.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 963.7 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb54126d205eddffe03e1fe679d52c8753f189667e5095ec6739fef1dc454cf1
|
|
| MD5 |
1d1f70418613479774f4e4012379cd18
|
|
| BLAKE2b-256 |
9793127879f77972db4f6a2507f479de0c2807a91ad90a810960f4b80f032a32
|
File details
Details for the file pyattimo-0.6.5-cp37-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: pyattimo-0.6.5-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 837.5 kB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a911b7aa6c0dd6c90bf37a95f01e4d11e5e1213cc6e067cf31863a5d958c260
|
|
| MD5 |
5c92510d6e5b21bb05789f4125505ee5
|
|
| BLAKE2b-256 |
cd37c24c8bea5cffb561f62e413b2d922ade3940f15b631f28a6cfea57e88f5b
|
File details
Details for the file pyattimo-0.6.5-cp37-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: pyattimo-0.6.5-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 953.3 kB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
253626002b73d1dc7d6af9cddb2f8deb56b2558c79a559ccda61b776c90ea4da
|
|
| MD5 |
3432de455a6480e4550e3a50cd3ee360
|
|
| BLAKE2b-256 |
56bd36e938aefe386e906612f81a25751a04f9a09fa82497942f8634c8fbfddc
|