gm
gm copied to clipboard
GM package (for tutorial compat)
(Note: this package is provided for compatibility with public tutorials. It is not maintained anymore.)
GM: Graphical Models for Torch/LuaJIT
This package provides standard functions to create (arbitrary) undirected graphical models, using adjacency matrices.
A graph is described by an adjacency matrix, node potentials and edge potentials.
Install
$ git clone ...
$ [sudo] luarocks make
Use
First run torch, and load gm:
$ th
> require 'gm'
Once loaded, see and run the examples:
> gm.examples.simple()
> gm.examples.trainMRF()
> gm.examples.trainCRF()