A python library that supports the constrained analysis of probabilistic graphical models
Conin supports constrained inference and learning for hidden Markov models, Bayesian networks, dynamic Bayesian networks and Markov networks. Conin interfaces with the pgmpy python library for the specification of general probabilistic graphical models. Additionally, it interfaces with a variety of optimization solvers to support learning and inference.
Conin tests can be executed using pytest:
cd conin
pytest .
If the pytest-cov package is installed, pytest can provide coverage statistics:
cd conin
pytest --cov=conin .
The following options list the lines that are missing from coverage tests:
cd conin
pytest --cov=conin --cov-report term-missing .
Note that pytest coverage includes coverage of test files themselves. This gives a somewhat skewed sense of coverage for the code base, but it helps identify tests that are omitted or not executed completely.