Randomly generates grid-shaped graphical models in UAI file format [1].
Copyright (c) 2016, Lars Otten (lotten@uci.edu), licensed under MIT license.
Call with gridGen.py N [det], where N is the size of the grid (N x N) and det (optional) is the level of determinism, i.e. the probability that any given cost function value is 0.
gridGen.py 10 .1for a 10x10 grid with 10% determinism.gridGen.py 15 0for a 15x15 grid with no determinism.
Python 2 or 3.