Skip to content

Data structures and parsing tools for representing graphical models in Julia

Notifications You must be signed in to change notification settings

johnmyleswhite/GraphicalModels.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

GraphicalModels.jl

NOTICE

This package is unmaintained. Its reliability is not guaranteed.

Introduction

Parse graphical models using a BUGS-like notation and represent the models as Julian data structures:

using GraphicalModels

ex = quote
	for i in 1:3
		mu[i] ~ Normal(0, 1)
	end
	for j in 1:3
		sigma[j] ~ Gamma(1, 1)
	end
	for i in 1:3
		for j in 1:2
			x[i, j] ~ Normal(mu[i], sigma[j])
		end
	end
end

model = GraphicalModels.parse_model(ex)

index, inverse_index = GraphicalModels.build_indices(model)

About

Data structures and parsing tools for representing graphical models in Julia

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages