Skip to content

Mapping of bow-tie analysis in Open-PSA MEF format to Bayesian network. Implementation of the algorithm presented by Khakzad et al, 2013.

License

Notifications You must be signed in to change notification settings

zurheide/pybnbowtie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Mapping of bow-tie analysis in Open-PSA MEF format to Bayesian network. Implementation of the algorithm presented by Khakzad et al, 2013.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published