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 Distribution

gradual_mining-0.3.1.tar.gz (50.2 kB view details)

Uploaded Source

Built Distributions

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

gradual_mining-0.3.1-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.1-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.1-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.1-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.1-cp39-abi3-win_amd64.whl (305.3 kB view details)

Uploaded CPython 3.9+Windows x86-64

gradual_mining-0.3.1-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.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: gradual_mining-0.3.1.tar.gz
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gradual_mining-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ec3c11aac5fe0beecf0f95f941be4d67d75811c5fac385c08268c60910ed27ce
MD5 cfb140db851c38186ddea43fb7fb73b0
BLAKE2b-256 e644c1f018fc7bca184a67b6afb6ab20a378d73926bead897bd7c2c682d6d2ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1.tar.gz:

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.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 05b3a999304c1d2f05f8e95e3bc3bab915e03991330c4189288c19b1d056d587
MD5 73b38f4beecc03a3b0ce27da3b13e1b0
BLAKE2b-256 56369f49c85693fac17f5d102281081bd402493e16ad84fe2c83de28313df0b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1-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.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3b5349204eb99bf503fb125a14a28e2389f1b359b7e70d470a64a6fb439098b0
MD5 8c1b4a667be9f66ef7febc55223e87c7
BLAKE2b-256 371def71a775b99b526b05d550f8c27ba17afdd042cd6e256db36fdb5ef0d7c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1-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.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4a0bca289b2bfbd1237bade75c55e27924e5a9d5f0213ef7478e39e7ee5e6bd0
MD5 4d81e5c55b3b911e256383266dd9c782
BLAKE2b-256 9f0e226c91e2a67c76452329519582c594106ce5a8e1ee7f8c103bf9c99e6407

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1-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.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d71f5dcc13ac4f080172dc40f42372d78ad826efcb24e5db7020d47f3b837fb9
MD5 0a378af28bd320329cba6ecac508868f
BLAKE2b-256 01838cc0053b8b75c7b6e25479efcb2222e12cec6d29a89b6ba15a2defbe9b94

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1-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.1-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e64938641af929d667c09b7d6fa69494ab0db4a2d2a0318c1e9ffd1017a6978c
MD5 8bcf44db8c90905dfa5242c133cbf7d3
BLAKE2b-256 5ad466e1d9a4e0af76808cbed4353ebf95c77318aa7b5d8aff3380301b01211e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1-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.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ae5f5c3122575b63f40ee0dfe1646ade075f3da06e95c8f0946f0f623950e755
MD5 843c107a0b2d1d55077dc6277525786e
BLAKE2b-256 6df6a1ec429556810cc622f2b8e49da92ca96ed84837b1e17226096f53ac1c1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1-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.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a3bea5c041fc2cb6c4c52ba4d1e5c330c72b6324c8b11f147952cb561fb695b4
MD5 9412167eb6b6a7330162412e15ef13d0
BLAKE2b-256 edf0baa84dd8a67a38bd4cca9c111ebb084a7b5976ddacaafc934aac59c63c71

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1-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.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gradual_mining-0.3.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8e86c08eff1fbd3695e3b698258196d21354802697b16dc9da3b785da7ead7e
MD5 40826a74dba4ad20ac66d1eb032e5060
BLAKE2b-256 e517699a11052523c38d8a447558284af0754a2d0ef4a455ad739e454fca9771

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradual_mining-0.3.1-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