probml / pmtk3

Probabilistic Modeling Toolkit for Matlab/Octave.
MIT License
1.55k stars 797 forks source link

Proposed new utility factorGraphToMrf #44

Open ido opened 10 years ago

ido commented 10 years ago

From ctjoreilly@gmail.com on September 13, 2012 15:28:15

What steps will reproduce the problem? N/A What is the expected output? What do you see instead? N/A Please provide any additional information below. The attached file is a simple utility for converting factor graphs to pairwise MRF models (very similar to factorGraphToMrf2) due to mrfCreate not currently supporting general clique potentials. Intended to help with importing from formats external to pmtk3 (i.e. convert to factor graph representation and from there to mrf or mrf2 in order to be able to call different inference routines).

Attachment: factorGraphToMrf.m

Original issue: http://code.google.com/p/pmtk3/issues/detail?id=44