/max-sum

Primary LanguagePython

Implementation of Max-Sum Algorithm In Python2.7

How to run:

python ms.py input-file -l 10

Options:

  • input-file is representation of factor graph in json the file fg.json is an example.
  • -l: lambda(number of time that z vector is not changed to ensure convergence of a variable agent). Default: 10
  • Body of functions are in Functions.py file. The content in this file is for example in fg.json file.