Skip to content

kchae/AnglicanWorksheets

Repository files navigation

Anglican user project template

This repository provides template for quickly start hacking away with Anglican Probabilistic Programming System. The repository is a Leiningen project. Probabilistic queries can be run either in the Leiningen REPL, or inside the browser using Gorilla REPL.

Checkout and modify for your needs. programs is intended for standalone programs run in REPL or from the command line, worksheets is for Gorilla REPL worksheets. Take a look a the Introduction to Anglican if you are new to Anglican. Anglican is built on top of Clojure and syntactically supports a subset of Clojure. This Clojure tutorial is a sufficient introduction to the Clojure language for Anglican programmers.

The easiest way to start a new program is to copy programs/template.clj (for a standalone program) or worksheets/template.clj (for Gorilla worksheets) to a file with a different name in the same directory and start modifying it. Advanced programming patterns and techniques can be found in the collection of anglican examples.