Python toolbox for graphical models
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
tests
.gitignore
__init__.py
factor.py
filetypes.py
graphmodel.py
license.txt
messagepass.py
misc.py
montecarlo.py
readme.md
search.py
varset_py.py
weighted.py
wmb.py
wogm.py

readme.md

pyGM : A Python toolbox for Graphical Models

This code provides a simple Python-based interface for defining probabilistic graphical models (Bayesian networks, factor graphs, etc.) over discrete random variables, along with a number of routines for approximate inference. It is being developed for use in teaching, as well as prototyping for research.

The code currently uses NumPy for representing and operating on the table-based representation of discrete factors, and SortedContainers for some internal representations.

Installation

Simply download or clone the repository to a directory pyGM, and add its parent directory to your Python path, either:

$ export PYTHONPATH=${PYTHONPATH}:/directory/containing/

or in Python

import sys
sys.path.append('/directory/containing/')