Skip to content
/ SGHMC Public

Implementation of Stochastic Gradient Hamiltonian Monte Carlo.

Notifications You must be signed in to change notification settings

Senlody/SGHMC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SGHMC

Implementation of Stochastic Gradient Hamiltonian Monte Carlo.

For details, refer to original paper

This project is the final homework for duke STA663, contributed by Zining Ma ([email protected]) and Machao Deng ([email protected])

Repository contents

  • development/ : jupyter notebooks for package development

  • report/ : contents for the project reoprt

  • sghmc/ : source codes

Install

To install the package, run

$ git clone https://github.com/Senlody/SGHMC.git
$ cd SGHMC/sghmc
$ python setup.py install

You may need Administrator rights to install the package.

examples

To run examples, cd to SGHMC/sghmc/tests folder, and run one of the following

$ python mixnormal.py
$ python simpleU.py
$ python bnnMPG.py

A successful run of example script ends without throwing any error.

WARNNING: mixnormal.py and simpleU.py contains sghmc_chains that only works on linux. Running these examples on windows will cause errors.

For the details of the examples, refer to project report in SGHMC/report.

About

Implementation of Stochastic Gradient Hamiltonian Monte Carlo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published