Mine Frequent Representative Motifs
Project description
FRM-Miner
FRM-Miner: Efficient Motif Discovery in Large Collections of Time Series.
This repository contains the Python implementation of FRM-Miner (in frm), as well as code to replicate the experiments (in experiments).
Installation
It is easiest to install FRM-Miner via pip:
pip install frm-miner
Frm-Miner 1.0
Looking for the conference version (S. J. Rotman, B. Cule and L. Feremans, "Efficiently Mining Frequent Representative Motifs in Large Collections of Time Series," 2023 IEEE International Conference on Big Data (BigData), Sorrento, Italy, 2023, pp. 66-75, doi: 10.1109/BigData59044.2023.10386145.)?
Example
You will probably get more meaningful results than this if you use your own data (collection of univariate time series, time series do not have to be equal length).
import numpy as np
import matplotlib.pyplot as plt # Not a dependency
from frm import Miner
# Set hyperparameters
MINSUP = 0.3
SEGLEN = 5
ALPHA = 4
K = 4
# Generate 10 random time series with 100 observations each
rng = np.random.default_rng()
data = [rng.standard_normal(100) for _ in range(10)]
# Mine frequent representative motifs
miner = Miner(MINSUP, SEGLEN, ALPHA, k=K)
motifs = miner.mine(data)
# Plot frequent representative motifs
fig, axs = plt.subplots(ncols=K, sharey='all', layout='constrained')
for motif, ax in zip(motifs, axs):
ax.plot(motif.representative)
plt.show()
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 Distribution
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 frm_miner-2.0.tar.gz.
File metadata
- Download URL: frm_miner-2.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c962551e0077393846d13de965f9e6f6471ea3f5409a9817eaa305d8ba439bf2
|
|
| MD5 |
b6bc6c49fac392e342de691583fcceea
|
|
| BLAKE2b-256 |
8e32b03e72fe9b0b5966614d90d0ea9b727df625b30aa25930215c2e0e947a3e
|
File details
Details for the file frm_miner-2.0-py3-none-any.whl.
File metadata
- Download URL: frm_miner-2.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09f5dd3b1d94654fab720e7426e1a49d6017eea1fa7e60eae84f44f24a85fb5e
|
|
| MD5 |
cc91e6fae047bae37163a5e1b7232c9c
|
|
| BLAKE2b-256 |
9cf60b4b207427b45b9ba5d855d530603b7c1e7fbf44546b5ab22a6b478d83fe
|