Pybnbowtie
Mapping of bow-tie analysis in Open-PSA MEF format to Bayesian network. Implementation of the algorithm presented by Khakzad et al, 2013.
Install / Use
/learn @zurheide/PybnbowtieREADME
pybnbowtie
pybnbowtie is a library for mapping bow-tie analysis to Bayesian networks.
Dependencies
pybnbowtie has the following dependencies:
- pgmpy (with its own dependencies)
- treelib
- matploblib
Enable usage of jupyter (see also notes below)
- ipykernel
Installation of dependencies from pgmpy
- networkx
- numpy
- scipy
- pandas
- pyparsing
- torch
- statsmodels
- tqdm
- joblib
- pgmpy
- treelib
And perhaps for jupyter also
- ipykernel
- matplotlib
Installation
To install pybnbowtie from source code:
git clone https://github.com/zurheide/pybnbowtie.git
cd pybnbowtie
pip install -r requirements.txt
python setup.py install
jupyter
If pipenv is used the environment has to be installed in jupyter. Howto was found here: https://stackoverflow.com/questions/47295871/is-there-a-way-to-use-pipenv-with-jupyter-notebook
run python -m ipykernel install --user --name=my-virtualenv-name before usage of jupyter:
$ pipenv shell
$ python -m ipykernel install --user --name=my-virtualenv-name
$ jupyter notebook
Afterwards select my-virtualenv-name kernel in jupyter.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
109.4kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
349.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
