SkillAgentSearch skills...

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/Pybnbowtie
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars13
CategoryDevelopment
Updated11mo ago
Forks6

Languages

Jupyter Notebook

Security Score

87/100

Audited on May 4, 2025

No findings