Skip to content
This repository

Probability monad for Metropolis Hastings sampling

branch: publish

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 COPYING
Octocat-spinner-32 COPYING.LESSER
Octocat-spinner-32 README
Octocat-spinner-32 project.clj
README
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.
Something went wrong with that request. Please try again.