GithubHelp home page GithubHelp logo

odds's Introduction

Odds Build Status

Probabilistic programming in Scala

Odds is a small domain-specific language (DSL) for probabilistic programming, embedded in Scala. Odds provides first-class support for random variables and probabilistic choice, within Scala's powerful type system. Odds programs are actually Scala programs, which means that all of Scala's abstraction and modularity facilities can be used to compose probabilistic computations and to specify deterministic program parts.

Installation

  1. Odds is written in Scala, which runs on the JVM. So for starters, you'll need an up-to-date JRE/JDK. If you're on a Debian/Ubuntu system, this should do the trick:

     $ sudo apt-get install openjdk-7-jre
    
  2. Install the SBT build tool.

  3. Clone the GitHub repository:

     $ git clone https://github.com/sstucki/odds.git
    
  4. Go into the root directory and compile the source code using SBT:

     $ cd odds
     $ sbt compile
    
  5. Run sbt test to run the test suite.

  6. Run sbt publish-local to install the Odds library for use in other projects.

Examples

Have a look at the various test cases in the core/test/ directory. Many of them are Odds example programs, illustrating how to write an Odds program and perform inference on it.

Documentation

To build the API docs, run sbt doc. You can find the generated API docs in the core/target/scala-2.10/api/ directory.

Our Scala'13 paper also contains an introduction to Odds and describes the principles it is built on. The source code of Odds has changed quite a bit since Scala'13, but the original source code (on which the paper was based) is available here.

Source code

Visit Odds on GitHub.

odds's People

Contributors

namin avatar sstucki avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.