Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gradual_mining-0.3.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (422.7 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

gradual_mining-0.3.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (422.9 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

gradual_mining-0.3.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (423.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

gradual_mining-0.3.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (424.9 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

gradual_mining-0.3.0-cp39-abi3-win_amd64.whl (305.3 kB view details)

Uploaded CPython 3.9+Windows x86-64

gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (423.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

gradual_mining-0.3.0-cp39-abi3-macosx_11_0_arm64.whl (391.6 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file gradual_mining-0.3.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e68c64add8be31c136449d348c3bbdf914e5bbe410c06859b1fc621a64b0353a
MD5 c2897367390064147ac6a2c490674ff7
BLAKE2b-256 18d87eb49ad9bcf5d96a8bc380f51b5655e78d4e971062c484312cfe19c0493b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gradual_mining-0.3.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 78cb5b0d034297745840f9b362847f25d001dbdfd33eb321d0102bd60849bbe1
MD5 934e614c9eeaa71a3645c1320b49196b
BLAKE2b-256 dcda809de49bdc4fdf603a3e2b12fe336877fe81957b91936537929cc2d487ac

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gradual_mining-0.3.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ce108c7676a969156d6ad658f7ad0b4a1227394257781196dfefc294248da007
MD5 9fb6f1c9ba2a79aa925492b22400f821
BLAKE2b-256 52206d759634a68a9f78b4010604b9b82ff61d3dcdc890a1c4cd15559303ba46

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gradual_mining-0.3.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1eda2801c42582faa5cde2e96888a258db00e369161c114f98fd06902acd742b
MD5 db1a742c8ab0f1e4c04cf597a853ae23
BLAKE2b-256 e756b8ba689ced8b6e178f698e064daa960e36f9a9cd6c98638002b4257ca0ce

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gradual_mining-0.3.0-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3c56d4bff5a13486727e064ade118c148d78c165e5c1acc4cd7037fcf3a09c63
MD5 8630d6e41cbe81f31c3ab96ef6287959
BLAKE2b-256 4ed69b6fe23f01bceca2750a7a04c9601b4807b92edbd2f2b4c594d5a0ca94e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.0-cp39-abi3-win_amd64.whl:

Publisher: release.yml on kndbvortex/gpmf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8c9de35d3a5205e414694553bdbf3a32b39c9095841233a5b24149b95061aaeb
MD5 58170a5b7a8ae4ae7f80713cae5946fd
BLAKE2b-256 cd51da22d8b779751c9c88e0bc75f2ce39a4a184ccc1a59ca0c1656da589dbec

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 24bed22effdf667d712d1c0044150aa9401abd22929ed4677c19afb010b8cef9
MD5 7a969b8b3eabd10da027f0837d36fc7a
BLAKE2b-256 83c3dcf5d4aac80f2fcda3c3d7d10461a2758a43a7a01c2df0943b852b07ce50

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gradual_mining-0.3.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4890780235d1d5e03c5932fb6752e75b72093f183b83f953a2b7e22c81825703
MD5 accca5656fc154c176a2295111530bce
BLAKE2b-256 1a7b22c729c7eca370edf26646706943c1a503bc16a482a90ed5ee14c96d14ff

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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