pgmpy0.1.26
Published
A library for Probabilistic Graphical Models
pip install pgmpy
Package Downloads
Authors
Project URLs
Requires Python
Dependencies
- networkx
- numpy
- scipy
- scikit-learn
- pandas
- pyparsing
- torch
- statsmodels
- tqdm
- joblib
- opt-einsum
- xgboost
- google-generativeai
- networkx
; extra == "all"
- numpy
; extra == "all"
- scipy
; extra == "all"
- scikit-learn
; extra == "all"
- pandas
; extra == "all"
- pyparsing
; extra == "all"
- torch
; extra == "all"
- statsmodels
; extra == "all"
- tqdm
; extra == "all"
- joblib
; extra == "all"
- opt-einsum
; extra == "all"
- xgboost
; extra == "all"
- google-generativeai
; extra == "all"
- xdoctest
; extra == "all"
- pytest
; extra == "all"
- pytest-cov
; extra == "all"
- coverage
; extra == "all"
- mock
; extra == "all"
- black
; extra == "all"
- pre-commit
; extra == "all"
- daft
; extra == "all"
- xdoctest
; extra == "tests"
- pytest
; extra == "tests"
- pytest-cov
; extra == "tests"
- coverage
; extra == "tests"
- mock
; extra == "tests"
- black
; extra == "tests"
- pre-commit
; extra == "tests"
pgmpy is a Python package for working with Bayesian Networks and related models such as Directed Acyclic Graphs, Dynamic Bayesian Networks, and Structural Equation Models. It combines features from both causal inference and probabilistic inference literatures to allow users to seamlessly work between both. It implements algorithms for structure learning/causal discovery, parameter estimation, probabilistic and causal inference, and simulations.
- Documentation: https://pgmpy.org/
- Installation: https://pgmpy.org/started/install.html
- Mailing List: https://groups.google.com/forum/#!forum/pgmpy .
- Community chat: discord (Older chat at: gitter)
Examples
- Creating a Bayesian Network: view |
- Structure Learning/Causal Discovery: view |
- Parameter Learning: view |
- Probabilistic Inference: view |
- Causal Inference: view |
- Extending pgmpy: view |
- Full List of Examples: https://github.com/pgmpy/pgmpy/tree/dev/examples
- Tutorials: https://github.com/pgmpy/pgmpy_notebook/
Citing
If you use pgmpy
in your scientific work, please consider citing us:
Ankur Ankan, & Abinash Panda ( 2015 ). pgmpy: Probabilistic Graphical Models using Python . In Proceedings of the 14th Python in Science Conference (pp. 6 - 11 ).
Bibtex:
@InProceedings{ Ankan2015,
author = { {A}nkur {A}nkan and {A}binash {P}anda },
title = { pgmpy: {P}robabilistic {G}raphical {M}odels using {P}ython },
booktitle = { {P}roceedings of the 14th {P}ython in {S}cience {C}onference },
pages = { 6 - 11 },
year = { 2015 },
editor = { {K}athryn {H}uff and {J}ames {B}ergstra },
doi = { 10.25080/Majora-7b98e3ed-001 }
}
Development
Code
The latest codebase is available in the dev
branch of the repository.
Building from Source
To install pgmpy from the source code:
$ git clone https://github.com/pgmpy/pgmpy
$ cd pgmpy/
$ pip install -r requirements.txt
$ python setup.py install
To run the tests, you can use pytest:
$ pytest -v pgmpy
If you face any problems during installation let us know, via issues, mail or at our gitter channel.
Contributing
Please feel free to report any issues on GitHub: https://github.com/pgmpy/pgmpy/issues.
Before opening a pull request, please have a look at our contributing guide If you face any problems in pull request, feel free to ask them on the mailing list or gitter.
If you would like to implement any new features, please have a discussion about it before starting to work on it. If you are looking for some ideas for projects, we a list of mentored projects available at: https://github.com/pgmpy/pgmpy/wiki/Mentored-Projects.
Building Documentation
We use sphinx to build the documentation. Please refer: https://github.com/pgmpy/pgmpy/wiki/Maintenance-Guide#building-docs for steps to build docs locally.
License
pgmpy is released under MIT License. You can read about our license at here