Skip to main content

A Python package for data imputation using Continuous Mixtures of Tractable Probabilistic Models

Project description

cm-tpm (Continuous Mixtures of Tractable Probabilistic Models) is a Python package designed for efficient and scalable data imputation using probabilistic circuits. The package provides a flexible and user-friendly API, making it easy to integrate into data preprocessing pipelines. The package is distributed under the MIT licence.

The project was started in 2025 by Hakim Agni, under the supervision of Thomas Krak at Eindhoven University of Technology, as part of a Master's Thesis. It implements the data imputation method described in the paper Continuous Mixtures of Tractable Probabilistic Models, by Alvaro Correia, Gennaro Gala, Erik Quaeghebeur, Cassio de Campos and Robert Peharz.

Installation

Dependencies

cm-tpm requires:

  • Python (>= 3.10)
  • NumPy (>= 1.22.4)
  • PyTorch (>= 2.6.0)
  • SciPy (>= 1.13.0)
  • pandas (>= 2.2.2)

User installation

The easiest way to install cm-tpm is using pip:

pip install cm-tpm

Optional Dependencies

To install all optional dependencies:

pip install cm-tpm[all]

You can also install them individually:

  • Excel file support (.xlsx), install openpyxl:
pip install cm-tpm[excel] 
  • Parquet and Feather file support (.parquet. .feather), install pyarrow:
pip install cm-tpm[parquet]
  • Progress bars (for verbose/debug mode), install tqdm:
pip install cm-tpm[tqdm]

Development

Source code

You can check the latest source code with the command:

git clone https://github.com/Hakim-Agni/cm-tpm.git

Install development dependencies:

pip install -r 'requirements.txt'

Testing

After installation, you can launch the test suite from outside the source directory (this requires pytest to be installed):

pytest tests

Help and Support

Documentation

The documentation supporting this package can be found in the wiki page on GitHub.

Communication

If you have any questions or feedback, feel free to reach out via:

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

cm_tpm-1.0.2.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

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

cm_tpm-1.0.2-cp310-cp310-win_amd64.whl (76.6 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file cm_tpm-1.0.2.tar.gz.

File metadata

  • Download URL: cm_tpm-1.0.2.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for cm_tpm-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5959c36c4051e81668cb153ce169e4743037cf12d13d0c9bc48543007dd49cd3
MD5 ad698b7650c86074f9542a684ed3fc15
BLAKE2b-256 1ea306276a9b355065e57dfeb2a67dd2a2ded8f5fbabadf56187c357b004ea51

See more details on using hashes here.

File details

Details for the file cm_tpm-1.0.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: cm_tpm-1.0.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 76.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for cm_tpm-1.0.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 89c818943cc0c348c04d0f2e3aa8dd502eed1901813916ab37f1139fb26db398
MD5 7c2a539a736df089a8a9743c27e190ec
BLAKE2b-256 5511da9db141931440194d4bf14a24c6e26b2a6cacd0d5c370721355e5ff8ea8

See more details on using hashes here.

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