GMtoolbox

GMtoolbox : a Matlab toolbox for inference in Graphical Models

Requirement

For some functions (gm_plot_fg, gm_plot_rg, gm_separate_fg and util/setCountingNumbers) a version of Matlab higher than R2015b is required (because they use the graph and digraph classes).

Download GMtoolbox

From the Project Forge Files page download the file gmtoolbox.zip.
Unzip the file and go to the created directory.
On Linux system execute the following system commands:
    unzip gmtoolbox.zip
    cd gmtoolbox

Try the toy Bayesian Network example Sprinkler.
    matlab
    >>addpath( genpath('pwd') )
    >>fg = gm_example_Sprinkler();
    >>gm_plot_fg( fg )

Sprinkler graph

FAQ

For any question, first consult this FAQ. If there is no appropriate answer or to suggest a feature, add a request on the Bugs and Feature request of the project

Error because of functions not found: setBG, setCountingNumber.
The directory gmtoolbox/util must be on Matlab search path. See the addpath command above.

I have un error message using gm_example_DBN.
Be sure to have define NS as global and with a value ! For example: global NS; NS=2;

gm_plot_fg function opens an empty figure window.
Be sure to have a Matlab version higher than R2015b.

Error in a toolbox function.
When you define a factor graph, do not forget to check its validity with the gm_check_fg function. This function does NOT detect all problems but may be useful. Same with gm_check_rg for region graphs.