Repository structure¶
This repository is organised into the following main components.
Core library (tbnpy/)¶
The tbnpy directory contains the core implementation of the
tensor-based Bayesian network (TBN) framework.
It is designed to be compatible with matrix-based Bayesian networks
through the mbnpy module, especially for discrete variables.
variable.py: Variable definitionscpt.py: Conditional probability tensorsinference.py: Inference routinesadaptiveMH.py: Adaptive Metropolis–Hastings sampler
For scalable Bayesian network inference, TBN performs tensorised operations that generate many Monte Carlo samples simultaneously.
Examples (examples/)¶
Runnable, self-contained experiments demonstrating full workflows.
ABCDE/: Minimal mixed-variable Bayesian network… (additional example directories)