Giter VIP home page Giter VIP logo

s2g-mcmc's Introduction

S^2G-MCMC

Code for Stochastic Gradient MCMC with Stale Gradients

The system is adapted from: https://www.cs.rochester.edu/u/yli/caffe-ps.html, which is based on Caffe and MPICH. The system is used in the NIPS 2016 paper "Stochastic Gradient MCMC with Stale Gradients".

Changyou Chen ([email protected]), 2.24.2016

License

Please note that this code should be used at your own risk. There is no implied guarantee that it will not do anything stupid. Permission is granted to use and modify the code.

Usage

To use the system, you have to install the right version of third-party libraries such as MPICH.

I added some SG-MCMC solvers such as SGHMC and PSGLD. I used an unstandard (somewhat stupid) implementation for these solvers, such that to use them, you need to define names of layers ended with BDK in the model definition file. For an example, please refer to examples/mnist/lenet_train_test_paral_BDK.prototxt.

The three datasets and running scripts used in the paper are given in the example folder.

The system only works in CPU mode.

Citing S^2G-MCMC

Please cite our NIPS paper if it helps your research:

@inproceedings{S2GMCMC_NIPSS2016,
  Author = {C. Chen, N. Ding, C. Li, Y. Zhang, and L. Carin},
  Title = {Stochastic Gradient MCMC with Stale Gradients},
  booktitle={NIPS},
  Year  = {2016}
}

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.