Git Product home page Git Product logo

gmm_cpp's Introduction

gmm_cpp

Gaussian mixture model implementation in C++ with black box variational inference and control variates

This is heavily based on the deep exponential families repo, a beautiful piece of software: https://github.com/blei-lab/deep-exponential-families

Requirements

On a mac:

# install developer tools
xcode-select --install
# install libraries
brew install gcc --without-multilib
brew install gsl
brew install homebrew/science/armadillo
brew install boost

For developing C++ on a Mac with waf as your build system, you need to be careful with your wscript waf configuration.

If you have installed libraries with homebrew, they are installed in /usr/local/include by default, whereas waf only searches for library headers in /usr/include by default. To fix this, you need to add conf.env.INCLUDES_MYLIB = ['/usr/local/include'] to the waf configuration to be able to use libraries installed using homebrew.

On ubuntu: see my docker file here.

Running

./waf configure
./waf build
./build/my_main

This runs black box variational inference to fit a gaussian mixture model to toy data.

gmm_cpp's People

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.