Skip to content

Code for NIPS 2015 "Gradient-Free Hamiltonian Monte Carlo via Effecient Kernel Exponential Families"

License

Notifications You must be signed in to change notification settings

karlnapf/kernel_hmc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kernel Hamiltonian Monte Carlo

Build Status Coverage Status

Code for NIPS 2015 Gradient-free Hamiltonain Monte Carlo with Efficient Kernel Exponential Families.

This package implements the kernel HMC part of the paper. It heavily depends on the kernel exponential family package, where all gradient estimation code is located.

My blog post about KMC.

An IPython notebook featuring KMC lite's ability to move in previously unexplored regions.

Install dependencies:

pip install -r https://raw.githubusercontent.com/karlnapf/kernel_hmc/master/requirements.txt

Optional dependencies are:

  • cholupdate for effecient low-rank updates of Cholesky factors of covariances. Speeds up Adaptive-Metropolis and KMC Finite from cubic to quadratic costs, see paper.
  • Shogun-toolbox for the Gaussian Process marginal posterior over hyper-parameters example. To compute unbiased estimates of the marginal likelihood via approximate inference and importance sampling.
  • theano for the Banana example, to compute gradients via auto-grad.

Install kernel_hmc:

pip install git+https://github.com/karlnapf/kernel_hmc.git

A list of examples can be found here. For example, run

python -m kernel_hmc.examples.demo_trajectories.py
python -m kernel_hmc.examples.demo_mcmc_kmc_static.py

About

Code for NIPS 2015 "Gradient-Free Hamiltonian Monte Carlo via Effecient Kernel Exponential Families"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published