Skip to main content

Tensor-based Bayesian Network (TBN) toolkit for scalable probabilistic inference

Project description

tbnpy

tbnpy is a Python toolkit for tensor-based Bayesian networks (TBNs), designed for scalable probabilistic inference in systems with large, structured state spaces.
It is particularly suited to applications where classical Bayesian network implementations struggle due to combinatorial growth in system states.

The package provides:

  • A tensor-based formulation of Bayesian networks
  • Scalable exact and approximate inference algorithms
  • Support for hybrid discrete–continuous models
  • Reusable system-level rules and probabilistic components
  • Examples illustrating end-to-end modelling and inference workflows

Documentation

📘 Full documentation is available here:
👉 https://jieunbyun.github.io/tbnpy/

The online documentation includes:

  • Conceptual overview of tensor-based Bayesian networks
  • Installation and getting-started guides
  • API reference for all core modules
  • Worked examples (including the ABCDE example)
  • Repository structure and design rationale

Repository structure

tbnpy/
├── tbnpy/              # Core library
├── examples/           # Worked examples and case studies
├── docs/               # Sphinx documentation source
├── .github/            # CI/CD workflows (GitHub Actions)
└── README.md

Installation

For development use, clone the repository and install in editable mode:

git clone https://github.com/jieunbyun/tbnpy.git
cd tbnpy
pip install -e .

Dependencies required for documentation are listed in requirements.txt.

Development status

tbnpy is under active development.
The API may evolve as new modelling patterns, inference strategies, and large-scale case studies are incorporated.

Citation

Citation

A dedicated tbnpy methodology paper is currently under preparation.
In the meantime, please cite the following related work:

Byun, J.-E., & Song, J. (2021). Generalized matrix-based Bayesian network for multi-state systems. Reliability Engineering & System Safety, 211, 107468.

License

This project is released under an MIT license.
See the repository for license details.


For detailed usage, examples, and API documentation, please refer to:
🔗 https://jieunbyun.github.io/tbnpy/

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

tbnpy-0.1.0.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

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

tbnpy-0.1.0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file tbnpy-0.1.0.tar.gz.

File metadata

  • Download URL: tbnpy-0.1.0.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for tbnpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 510871b1d81a56223cd6b88baa810306ae1b8b7bcc1603f9f385cdf2fc0dcbfa
MD5 a42273888295dbe6a7d6f52c4fc00e3f
BLAKE2b-256 ed28777c9a36c1ecb7f959e3ceabed0bb01bef8ec5891b9f2917a8bf24190402

See more details on using hashes here.

File details

Details for the file tbnpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tbnpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for tbnpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2942c1f54dfde81626184998cee467a7d09b8690307fe83290da41a10d18157c
MD5 148912808a1c6a34237d0926a52d9d34
BLAKE2b-256 c838acc87198dc69dca7d803ab4046486759b124c6d88ac112f6b0aa48972d06

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