iLang

What is iLang?
iLang is a Python module for Bayesian inference.

A simple example

import ilang
import numpy
ndim     = 1000
nsampler = 10000
dag        = ilang.Graphs.ProbabilisticGraphicalModel(['x','mean','covariance'])
dependence = ilang.Models.MultivariateGaussian('observation')
dag.add_dependence(dependence,{'x':'x','mu':'mean','cov':'covariance'}) 
dag.set_nodes_given(['mean','covariance'],True)
dag.set_node_value('mean',numpy.zeros((1,ndim)))
dag.set_node_value('covariance',numpy.eye(ndim))
dag.display_in_browser() 
dag.sample.sample(nsamples,'HamiltonianMCMC')
dag.tracer.plot('x')

s=ilang.examples.multivariate_gaussian()
s.tracer.display.plot_histogram(0,range_plot=(-5,5))

Easy install
pip install ilang

Download source code
iLang on GitHub

Install from source
python setup.py build install

Test
python setup.py test