Unified Python package for gradual pattern mining with multiple algorithms
Project description
GPMF — Gradual Pattern Mining Framework
A Python library for gradual pattern mining with a unified scikit-learn-style API.
Installation
pip install gradual-mining
Pre-built wheels are available for Linux, macOS and Windows (x86_64 and arm64). The ParaMiner algorithm includes an optional Rust extension for multi-core acceleration — it is compiled into the wheel automatically and falls back to a pure-Python implementation if unavailable.
Quick start
from gpmf.algorithms.graank import GRAANK
model = GRAANK(min_support=0.5)
patterns = model.mine("data.csv")
for p in patterns:
print(p.to_string(), ":", p.support)
All algorithms share the same interface:
model.fit(data) # data can be a CSV path, DataFrame, or GradualDataset
patterns = model.get_patterns()
result = model.get_result() # includes execution time, metadata
ParaMiner with Rust acceleration
from gpmf.algorithms.closed.paraminer_algorithm import ParaMiner
model = ParaMiner(min_support=0.5, use_rust=True, num_threads=4)
patterns = model.mine("data.csv")
Available algorithms
| Algorithm | Key | Authors | Reference |
|---|---|---|---|
| GRAANK | graank |
Laurent, Lesot & Rifqi (2010) | paper |
| GRITE | grite |
Di-Jorio, Laurent & Teisseire (2009) | paper |
| SGrite | sgrite / sgopt / sg1 / sgb1 / sgb2 |
Tayou Djamegni, Tabueu Fotso & Kenmogne (2021) | paper |
| ParaMiner | paraminer |
Négrevergne, Termier, Rousset & Méhaut (2014) | paper |
| ACO-GRAANK | ant-graank |
Owuor, Laurent & Orero (2019) | paper |
| TGrad | tgrad |
Owuor, Laurent & Orero (2019) | paper |
| MSGP | msgp |
Lonlac, Doniec, Lujak & Lecoeuche (2020) | paper |
| GLCM | glcm |
Do, Termier, Laurent et al. (2015) | paper |
| PGLCM | pglcm |
Do, Termier, Laurent et al. (2015) | paper |
Pruning criterion
| Criterion | Applies to | Authors |
|---|---|---|
Row–Column pruning (--use-rc-pruning) |
GRITE, SGrite, GLCM | Kamga Nguifo, Lonlac, Fleury & Mephu Nguifo (2025) — paper |
CLI
# List available algorithms
gradual-mine --list
# Mine patterns
gradual-mine graank data.csv --min-support 0.5
# Save results
gradual-mine graank data.csv --min-support 0.5 --output results.json --csv results.csv
# Parallel execution
gradual-mine paraminer data.csv --min-support 0.5 --n-jobs -1
Development
git clone https://github.com/your-org/gpmf
cd gpmf
uv sync --dev
uv run pytest
To build with the Rust extension locally:
pip install maturin
maturin develop --release
License
MIT
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 Distributions
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 gradual_mining-0.3.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: gradual_mining-0.3.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 422.7 kB
- Tags: PyPy, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e68c64add8be31c136449d348c3bbdf914e5bbe410c06859b1fc621a64b0353a
|
|
| MD5 |
c2897367390064147ac6a2c490674ff7
|
|
| BLAKE2b-256 |
18d87eb49ad9bcf5d96a8bc380f51b5655e78d4e971062c484312cfe19c0493b
|
Provenance
The following attestation bundles were made for gradual_mining-0.3.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on kndbvortex/gpmf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradual_mining-0.3.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
e68c64add8be31c136449d348c3bbdf914e5bbe410c06859b1fc621a64b0353a - Sigstore transparency entry: 1001083557
- Sigstore integration time:
-
Permalink:
kndbvortex/gpmf@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/kndbvortex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradual_mining-0.3.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: gradual_mining-0.3.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 422.9 kB
- Tags: PyPy, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78cb5b0d034297745840f9b362847f25d001dbdfd33eb321d0102bd60849bbe1
|
|
| MD5 |
934e614c9eeaa71a3645c1320b49196b
|
|
| BLAKE2b-256 |
dcda809de49bdc4fdf603a3e2b12fe336877fe81957b91936537929cc2d487ac
|
Provenance
The following attestation bundles were made for gradual_mining-0.3.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on kndbvortex/gpmf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradual_mining-0.3.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
78cb5b0d034297745840f9b362847f25d001dbdfd33eb321d0102bd60849bbe1 - Sigstore transparency entry: 1001083634
- Sigstore integration time:
-
Permalink:
kndbvortex/gpmf@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/kndbvortex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradual_mining-0.3.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: gradual_mining-0.3.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 423.3 kB
- Tags: PyPy, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce108c7676a969156d6ad658f7ad0b4a1227394257781196dfefc294248da007
|
|
| MD5 |
9fb6f1c9ba2a79aa925492b22400f821
|
|
| BLAKE2b-256 |
52206d759634a68a9f78b4010604b9b82ff61d3dcdc890a1c4cd15559303ba46
|
Provenance
The following attestation bundles were made for gradual_mining-0.3.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on kndbvortex/gpmf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradual_mining-0.3.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
ce108c7676a969156d6ad658f7ad0b4a1227394257781196dfefc294248da007 - Sigstore transparency entry: 1001083800
- Sigstore integration time:
-
Permalink:
kndbvortex/gpmf@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/kndbvortex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradual_mining-0.3.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: gradual_mining-0.3.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 424.9 kB
- Tags: PyPy, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eda2801c42582faa5cde2e96888a258db00e369161c114f98fd06902acd742b
|
|
| MD5 |
db1a742c8ab0f1e4c04cf597a853ae23
|
|
| BLAKE2b-256 |
e756b8ba689ced8b6e178f698e064daa960e36f9a9cd6c98638002b4257ca0ce
|
Provenance
The following attestation bundles were made for gradual_mining-0.3.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on kndbvortex/gpmf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradual_mining-0.3.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
1eda2801c42582faa5cde2e96888a258db00e369161c114f98fd06902acd742b - Sigstore transparency entry: 1001083775
- Sigstore integration time:
-
Permalink:
kndbvortex/gpmf@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/kndbvortex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradual_mining-0.3.0-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: gradual_mining-0.3.0-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 305.3 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c56d4bff5a13486727e064ade118c148d78c165e5c1acc4cd7037fcf3a09c63
|
|
| MD5 |
8630d6e41cbe81f31c3ab96ef6287959
|
|
| BLAKE2b-256 |
4ed69b6fe23f01bceca2750a7a04c9601b4807b92edbd2f2b4c594d5a0ca94e4
|
Provenance
The following attestation bundles were made for gradual_mining-0.3.0-cp39-abi3-win_amd64.whl:
Publisher:
release.yml on kndbvortex/gpmf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradual_mining-0.3.0-cp39-abi3-win_amd64.whl -
Subject digest:
3c56d4bff5a13486727e064ade118c148d78c165e5c1acc4cd7037fcf3a09c63 - Sigstore transparency entry: 1001083703
- Sigstore integration time:
-
Permalink:
kndbvortex/gpmf@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/kndbvortex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 432.4 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c9de35d3a5205e414694553bdbf3a32b39c9095841233a5b24149b95061aaeb
|
|
| MD5 |
58170a5b7a8ae4ae7f80713cae5946fd
|
|
| BLAKE2b-256 |
cd51da22d8b779751c9c88e0bc75f2ce39a4a184ccc1a59ca0c1656da589dbec
|
Provenance
The following attestation bundles were made for gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on kndbvortex/gpmf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
8c9de35d3a5205e414694553bdbf3a32b39c9095841233a5b24149b95061aaeb - Sigstore transparency entry: 1001083665
- Sigstore integration time:
-
Permalink:
kndbvortex/gpmf@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/kndbvortex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 423.7 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24bed22effdf667d712d1c0044150aa9401abd22929ed4677c19afb010b8cef9
|
|
| MD5 |
7a969b8b3eabd10da027f0837d36fc7a
|
|
| BLAKE2b-256 |
83c3dcf5d4aac80f2fcda3c3d7d10461a2758a43a7a01c2df0943b852b07ce50
|
Provenance
The following attestation bundles were made for gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on kndbvortex/gpmf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
24bed22effdf667d712d1c0044150aa9401abd22929ed4677c19afb010b8cef9 - Sigstore transparency entry: 1001083749
- Sigstore integration time:
-
Permalink:
kndbvortex/gpmf@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/kndbvortex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradual_mining-0.3.0-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: gradual_mining-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 391.6 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4890780235d1d5e03c5932fb6752e75b72093f183b83f953a2b7e22c81825703
|
|
| MD5 |
accca5656fc154c176a2295111530bce
|
|
| BLAKE2b-256 |
1a7b22c729c7eca370edf26646706943c1a503bc16a482a90ed5ee14c96d14ff
|
Provenance
The following attestation bundles were made for gradual_mining-0.3.0-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
release.yml on kndbvortex/gpmf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradual_mining-0.3.0-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
4890780235d1d5e03c5932fb6752e75b72093f183b83f953a2b7e22c81825703 - Sigstore transparency entry: 1001083593
- Sigstore integration time:
-
Permalink:
kndbvortex/gpmf@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/kndbvortex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5dde182fad3ea70d3646ca45bd2f025abda5b206 -
Trigger Event:
push
-
Statement type: