Skip to content

Probability monad for Metropolis Hastings sampling

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

bertschi/ProbClojureNice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an implementation of the probability monad. Inspired by the bher compiler of the MIT Scheme dialect Church (see http://projects.csail.mit.edu/church/wiki/Church) it uses Metropolis Hastings MCMC to sample from probabilistic programs.

The file src/probabilistic_clojure/monadic/api.clj contains the basic API for using the library. In the same directory, the file demos.clj demonstrates how generative models can be implemented. It relies on incanter (available from incanter.org) for graphical output and probability distributions.

For a quick start clone the repository, add the src directory (as well as incanter.jar) to your Java classpath and (use 'probabilistic-clojure.monadic.demos). Then run (test-mixture mixture-mem) to fit a Dirichlet mixture of Gaussian with three components to some test data.

LICENSE

This software is released under the LGPL. See COPYING.LESSER for details.

About

Probability monad for Metropolis Hastings sampling

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published