Skip to main content

Open-source Python library for pattern mining

Project description

pypatternminer

pypatternminer is an open-source Python library for pattern mining. It provides a broad, research-oriented, and reproducible framework for major pattern-mining families, including:

  • Itemset mining
  • High-utility itemset mining
  • High-utility sequential pattern mining
  • Sequential pattern mining

The project is developed with two main goals:

  1. to provide a comprehensive Python framework covering many influential pattern-mining algorithms in a unified environment;
  2. to provide publicly available code and testing datasets to support transparent and reproducible research.

Why pypatternminer?

Pattern mining has produced a large number of important algorithms over the past three decades, but the Python ecosystem remains relatively fragmented. pypatternminer aims to help bridge this gap by offering:

  • a unified Python environment for multiple pattern-mining families;
  • broad algorithmic coverage;
  • validation against SPMF reference implementations;
  • public access to source code and testing datasets;
  • a foundation for teaching, benchmarking, and future research.

Current Coverage

At the current stage, pypatternminer includes 144 implemented entries:

Category Implemented
Itemset mining 42
High-utility itemset mining 70
High-utility sequential pattern mining 3
Sequential pattern mining 29
Total 144

Planned future extensions include:

  • association rule mining
  • sequential rule mining
  • sequence prediction
  • periodic pattern mining
  • episode mining

Validation

A key design principle of pypatternminer is implementation reliability.

Each Python implementation is validated against the corresponding Java implementation in SPMF using:

  • the same input datasets,
  • the same parameter settings,
  • and the same experimental conditions.

The returned pattern sets and associated values, such as support or utility, are compared to ensure matching outputs.

Installation

Install from source

Clone the repository and install the required dependencies:

git clone https://github.com/taiduydinh/pypatternminer.git
cd pypatternminer
pip install -r requirements.txt

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

pypatternminer-0.0.1.tar.gz (309.0 kB view details)

Uploaded Source

Built Distribution

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

pypatternminer-0.0.1-py3-none-any.whl (398.0 kB view details)

Uploaded Python 3

File details

Details for the file pypatternminer-0.0.1.tar.gz.

File metadata

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

File hashes

Hashes for pypatternminer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f9fd610770f6c3fc7dbe6ed91da25d0e56cbc6057ac5a99bd8236fa4d17b077f
MD5 b1f24b60bf59917b90443cdb6d34ad04
BLAKE2b-256 276ce7abea193b99a5c8bda91714ecf876346132b0539a4df17e18b9bb537c7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypatternminer-0.0.1.tar.gz:

Publisher: publish.yml on taiduydinh/pypatternminer

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

File details

Details for the file pypatternminer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pypatternminer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 398.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypatternminer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e2924f7ed323703fa5c146c7a892c21b6494693c076aeb16f73d20a3ef2e9cd
MD5 dabe08c0e55126edf4d503c55b386c98
BLAKE2b-256 4a30b2ec74e7c9a844778636b369dd749b92efba79440f61a7a6cded1569af65

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypatternminer-0.0.1-py3-none-any.whl:

Publisher: publish.yml on taiduydinh/pypatternminer

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