D-K-E / graphical-models

Probabilistic Graphical Models from Scratch with support for LWF Chain Graphs
GNU General Public License v3.0
4 stars 2 forks source link
chain-graph graphical-models pgm python3

Graphical Models

Python package workflow

DOI

See doxygen generated documentation

The source code of this library aims to be accessible to all those interested in Probabilistic Graphical Models. The primary goal is to facilitate the understanding of models and basic inference strategies using well documented data structures based only on Python 3 standard library. Functions are annotated whenever possible.

Note that there are other alternatives on the subject:

We distinguish from these by the following traits:

Installation

The entire library depends only on Python standard library. It is tested for Python 3.6 through Github Actions at each push to the library. If you have Python 3.6+, you should be good to go for installation.

If you want to install without creating a virtual environment, just go to the main project directory that contains this readme file and call from terminal:

If you prefer conda for managing your virtual environments, simply create a new environment:

Activate the environment:

Install the library:

Lastly test your installation with following command:

You should see something like the following on the terminal:

Ran 179 tests in 0.666s

OK

Usage Examples

See the example notebooks on how to use different PGM types. Please note that running the examples require installing jupyterlab along with PyGModels.

Guide for Contributors

See Contributing.md

Contributors

Citation

For citing in a paper for general usage, use the JOSS paper DOI: DOI

If you absolutely need to reference to a particular version of a source code, you can use the zenodo DOI:

DOI