Git Product home page Git Product logo

bnpmix.java's Introduction

MCMC for Bayesian Non-Parametric Mixture Models

What's this about

This package has been written by Yee Whye Teh for the articles MCMC for Normalized Random Measure Mixture Models and On a class of σ-stable Poisson–Kingman models and an effective marginalized sampler. The folder src/nrmix is related to the first article and src/qmixto the second article. This package has been cleaned and uploaded by Emile Mathieu.

Check also the (partial) Julia port of this package.

Do not hesitate to create pull requests for enhancements or to open issues.

Installation and requirements

Requirements:

In a terminal:

git clone https://github.com/emilemathieu/NRMMM.git

Algorithms implemented

  • Marginalized Samplers:
    • Neal’s Algorithm 8 generalized
    • The Reuse algorithm
  • Conditional Slice Sampler

Example

You can run the Reuse conditional sampler on the galaxy dataset modelled as a mixtures of Gaussian with a normalized generalized Gamma prior:

cd out/artifacts/BNPMix_jar
java -cp BNPMix.jar nrmix.galaxy

Compile project

With IntelliJ:

  • File > New > Project from Existing Sources... > Navigate to the NRMMM folder > Open
  • File > Project Structure > Project Settings > Artifacts > Click green plus sign > Jar > From modules with dependencies... > Extract to the target Jar > Ok
  • Build > Build Artifact...

References

bnpmix.java's People

Contributors

ywteh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tudui123

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.